I got a great answer to my previous question (VBA copy from cell range to current location.) which was about how, using a VBA macro, to copy a range of cells to the current cell.
I would now like to improve upon this macro by having the current cell be automatically selected (by the macro) as the first cell below a table. This table automatically extends as new rows are appended to the end. Right now I need to manually select the cell then run the macro. It would be nice if I could automatically position the macro to the cell just below the table.
What I tried:
And some similar things. All get errors like
Runtime error '1004' Method 'Range' of object _global failed (first line above)
Runtime error '424' Object required (2nd line above)
Note that "Table1" is what the name manager shows and it's the onle table in thedocument.
I would now like to improve upon this macro by having the current cell be automatically selected (by the macro) as the first cell below a table. This table automatically extends as new rows are appended to the end. Right now I need to manually select the cell then run the macro. It would be nice if I could automatically position the macro to the cell just below the table.
What I tried:
VBA Code:
Range(Table1).EntireRow.Insert
Table1.EntireRow.Insert
Runtime error '1004' Method 'Range' of object _global failed (first line above)
Runtime error '424' Object required (2nd line above)
Note that "Table1" is what the name manager shows and it's the onle table in thedocument.
Last edited: