![]() |
#1
|
|||
|
|||
![]()
I am trying to add multiple rows to my Excel table (the number to be specified by an inputbox). The rows should go in starting at the current cursor position. I want to add Table rows, not worksheet rows.
My first problem was that I found myself unable to identify the current table row using [#This Row], so have had to resort to using absolute row numbers, subtracting the header row from the current worksheet row to give me the table row number. Using this, I can add a single row at my required location with this line of code: Code:
Selection.ListObject.ListRows.Add (intCurRow - intHeader) Is there a way to add multiple table rows with a single command, or to make this code run round a loop? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula that can merge multiple rows with the same ID into one row | Hilwey | Excel | 3 | 07-08-2015 08:50 PM |
![]() |
robby | Word | 3 | 04-18-2012 06:37 PM |
Displaying cursor position within cell | MiamiTom | Excel | 0 | 11-18-2011 09:02 AM |
![]() |
DugganSC | Word | 1 | 09-07-2011 11:42 AM |
Retrieve position of Cursor - x & y positions | SDondeti | PowerPoint | 0 | 05-19-2011 11:39 AM |