Hi,
I am trying to add new rows at the bottom of a table using a macro.
This is how I was taught before.
1. Select and copy the row.
2. go to the table to which you wish to add the new row.
3. click the top-left cell in the table and press Ctrl+downward arrow to get to the very bottom.
4. (+use relative references) Press downward arrow once again to reach the bottom blank.
5. Paste the value.
This was simple enough.
The trouble at the moment is that this macro works only if the table getting updated is not empty.
If the table is empty, the above macro will result an error.
Could you tell me how to update a new row even when the table is completely in the beginning, using macro?
I am trying to add new rows at the bottom of a table using a macro.
This is how I was taught before.
1. Select and copy the row.
2. go to the table to which you wish to add the new row.
3. click the top-left cell in the table and press Ctrl+downward arrow to get to the very bottom.
4. (+use relative references) Press downward arrow once again to reach the bottom blank.
5. Paste the value.
This was simple enough.
The trouble at the moment is that this macro works only if the table getting updated is not empty.
If the table is empty, the above macro will result an error.
Could you tell me how to update a new row even when the table is completely in the beginning, using macro?