Hello Everyone,
I'm new to VBA scripting world in Excel, through searching and learning from online forums and a freind's help I was able successfully apply the VBA codes below the first worksheet.
So now I'm trying to run the same code on an Excel Workbook that has multiple Worksheets and I would like to apply VBA script to all Worksheets in one shot.
Here is my code.
Code
Sub copy_Cell_A4()
'
' copy_Cell_A4 Macro
'
Dim RowLocation As Long 'can hold over 32000 if over this many rows
'
Range("A6").Select
Selection.End(xlDown).Select
RowLocation = ActiveCell.Row
Range("A4").Select
Selection.Copy
Range("J6:J" & RowLocation).Select
ActiveSheet.Paste
Range("A6").Select
Selection.End(xlDown).Select
RowLocation = ActiveCell.Row
Range("A2").Select
Selection.Copy
Range("K6:K" & RowLocation).Select
ActiveSheet.Paste
Range("A6").Select
Selection.End(xlDown).Select
RowLocation = ActiveCell.Row
Range("E2").Select
Selection.Copy
Range("L6:L" & RowLocation).Select
ActiveSheet.Paste
End Sub
Display More
I will eventually would like to run this VBA script from a batch file to update all the relevant worksheets within the workbook.
Thank you in advance for your assistance and help !!
Take care,
TD