VBA Code please help

punnipah

Board Regular
Joined
Nov 3, 2021
Messages
134
Office Version
  1. 2019
Platform
  1. Windows
Sub DefineArea()
Dim oSht As Worksheet
Dim vL As Range, vE As Range
Set oSht = Sheets("Pivot")
For Each vL In Range("D6", Range("E" & Rows.Count).End(xlUp))
Select Case vL.Value
Case "Total Ertrag"
End Select
Range("E6").Select
'Next Step
'I would like to Copy data From Columns F-I and Paste another Work Sheet if the data the same '
Ex. Columns "E"

BC11>>Copy data to Another Work Sheet BC11
AS_ACT AS_AMT CL_ACT CL_AMT
794,673.52 1,392.00 687.00 359416.91

But the billing cycle information is not the same.

Next vL

End Sub




Data

1649380574879.png


Output: Another Work Sheet




1649380599319.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,352
Messages
6,124,451
Members
449,161
Latest member
NHOJ

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top