questforexcel
Board Regular
- Joined
- Jan 18, 2019
- Messages
- 128
- Office Version
- 2013
- Platform
- Windows
Hi,
I have been trying to run macros from my source file to run on my target file.
I even selected use "relative reference", however every time I start to work on my file it gives me a runtime error code 1004. I understand that is because it cannot source the reference data. When I debug, it opens VBA and higlights the cells in blue below.
Could you please help and guide on whats wrong with my code and Macros.
I am fairly new with it, it doesnt appear to be as simple as clicking a "start" recording and "stop" recording macro.
End With
ActiveCell.Offset(2, 0).Rows("1:4").EntireRow.Select
Selection.Delete Shift:=xlUp
ActiveCell.Offset(-2, 0).Rows("1:5").EntireRow.Select
ActiveCell.Offset(-2, 9).Range("A1").Activate
I have been trying to run macros from my source file to run on my target file.
I even selected use "relative reference", however every time I start to work on my file it gives me a runtime error code 1004. I understand that is because it cannot source the reference data. When I debug, it opens VBA and higlights the cells in blue below.
Could you please help and guide on whats wrong with my code and Macros.
I am fairly new with it, it doesnt appear to be as simple as clicking a "start" recording and "stop" recording macro.
End With
ActiveCell.Offset(2, 0).Rows("1:4").EntireRow.Select
Selection.Delete Shift:=xlUp
ActiveCell.Offset(-2, 0).Rows("1:5").EntireRow.Select
ActiveCell.Offset(-2, 9).Range("A1").Activate