#1
|
||||
|
||||
find last used cell in row in a table
Sounds straightforward but it is giving me endless grief.
Using a userform and VBA, I need to figure out how to add data after the last cell which has data in it on a specific row. So, for example, on row 10 of the attached, the last used cell in in "C" however, the last used cell in row 11 is "E" Using the usual methods of finding the last column all seem to result in the last column of the table (in this case "F") and not the last cell in a row. How can I get around this puzzle? |
#2
|
|||
|
|||
I found this trick a little bit ago and it has been amazing for finding the last row
Code:
FinalRow = Range("A50000").End(XlUp).Row + 2 'experiment what to add 'to make the last row you actually want get selected. Let me know if that works Thanks |
#3
|
||||
|
||||
Thanks for replying.
This doesn't do what I was hoping for however, the following does so have managed to get around the issue: Quote:
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table with text that flows from cell to cell | hwrigley | Word Tables | 7 | 02-18-2014 02:59 AM |
Find out whether a cell has been typed or calculated | C J Squibb | Excel | 1 | 10-01-2013 11:41 AM |
cell of one table to display in a second table | HalinQuincy | Word Tables | 4 | 04-03-2011 04:11 PM |
VBA find or name a Table | smed | Word VBA | 1 | 01-17-2011 02:18 PM |
Auto-populate an MS Word table cell with text from a diff cell? | dreamrthts | Word Tables | 0 | 03-20-2009 01:49 PM |