|
-
Feb 6th, 2012, 09:58 AM
#1
Thread Starter
Member
[RESOLVED] Find next empty row, when data may/may not be in first column
I am trying to write a code that pastes data entered into a Userform into the next empty row.
All is good, except for finding the empty row. Currently, I use the code:
emptyRow = WorksheetFunction.CountA(Range("A:A")) + 1
But this only searches in column A for data. How do I find the empty row, when data could be entered into columns up to column Y (and beyond if possible)?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|