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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,347
Messages
6,124,421
Members
449,157
Latest member
mytux

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