Hi Guys and Gals,
I was wondering if someone could point out the obvious for me while I still have some hair left.
Within a macro, I am trying to move the cursor down variable amount of rows. I would like to input the value of how many times the cursor should move down into a cell (for example into “D1”).
So as an example, in the following code, I would like to replace the “99” with a variable value in cell D1. I am sure you guys can answer this in your sleep, but I just can’t figure out the formatting for the ActiveCell.Offset command.
Range("A1").Select
ActiveCell.Offset(99, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
ActiveCell.Offset(99, 0).Rows("1:1").EntireRow.Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A1").Select
Any help would be greatly appreciated.
Thank-you for your time,
Pete.
Bookmarks