PsychoCube
New Member
- Joined
- May 27, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hi All!,
My First post here..
I am using the follwing string to return the next empty row in a table.
If the table is empty, with just the single empty row underneath the column headings, the function using the "FindLastRow"...
...pastes the data in the row beneath the single empty table row, and thus pasting the data outside of the table.
In case it is relevant, A1 and A2 are also empty cells, the table starts in A3, the empty table row starts in A4, and the data is always pasted in A5...
Thanks for any advice or support in advance
My First post here..
I am using the follwing string to return the next empty row in a table.
VBA Code:
FindLastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Offset(1).Row
If the table is empty, with just the single empty row underneath the column headings, the function using the "FindLastRow"...
VBA Code:
ws.Range("A" & FindLastRow).PasteSpecial Paste:=xlPasteValues
...pastes the data in the row beneath the single empty table row, and thus pasting the data outside of the table.
In case it is relevant, A1 and A2 are also empty cells, the table starts in A3, the empty table row starts in A4, and the data is always pasted in A5...
Thanks for any advice or support in advance