Can someone please give me a macro to highlight the cells Range("A4:S35") and find the first empty cell in that selection while keeping the Range highlighted.
Can someone please give me a macro to highlight the cells Range("A4:S35") and find the first empty cell in that selection while keeping the Range highlighted.
Do you mean something like the below ?
handler required in case there are no blanks![]()
Please Login or Register to view this content.
(note: moved to parent Programming Forum (VBA))
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
That gives me the next blank column. Is there anyway i can get the next empty cell going form top to bottom of the page in the highlighted area? Could i just have the cursor on the empty cell and no message box. Sorry i wasnt more clear. Thank you very much
hi,
Welcome to the Forum
Here's a slight adaptation of DonkeyOte's suggestion...
hth![]()
Please Login or Register to view this content.
Rob
Rob Brockett
Kiwi in the UK
Always learning & the best way to learn is to experience...
This will be perfect if you could have the cursor land on the first empty cell. It is still starting on the top of the next column
same principle just loops through the columns rather than the entire range at once:
![]()
Please Login or Register to view this content.
Exactly what i wanted. Thank you very much
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks