Hi All,
Need a macro to find the first blank/empty cell in a row.
Hi All,
Need a macro to find the first blank/empty cell in a row.
This one line of code will find/select the first empty cell in row 25:
Please Login or Register to view this content.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
thanks,
but what if there are an infinite number of rows and what to find the first empy row. Basically I want to find the first available blank row.
Excel doesn't support an infinite number of rows.
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Maybe this
Please Login or Register to view this content.
or as a function
Please Login or Register to view this content.
Test the function so
Please Login or Register to view this content.
Hope this helps
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
My one liner:
Please Login or Register to view this content.
Or:
Please Login or Register to view this content.
I must be reading this thread incorrectly....
Both shg and JB have provided code that seems to find effectively this
I know the above can be unreliable, sometimes UsedRange can be larger than expected.Please Login or Register to view this content.
My reading is that you want to find the first empty row within the used range and if there isn't one return the end of the data plus one row.
This is quite different to the title of your threadBasically I want to find the first available blank row.
Am I wrong?
Last edited by Marcol; 08-12-2010 at 06:12 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks