Hi,
does anyone know how to ensure that the first empty cell within column A is selected before the file is closed.
thanks
Hi,
does anyone know how to ensure that the first empty cell within column A is selected before the file is closed.
thanks
Hi,
This in the workbook section of your VBA project
![]()
Please Login or Register to view this content.
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Here are a few diffent ways to find a vacant cell, row, column
To use in code![]()
Please Login or Register to view this content.
sweep![]()
Please Login or Register to view this content.
You are better off declaring your variable as Long which is more efficient than declarring it as varient
for more info read this page
http://www.cpearson.com/excel/variables.htm
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
Thanks Mudraker,
That's a bit of a mental block for me. I always go for integer for a loop variable, and when that returns an error, I change it to Variant.
Must remember long....must remember long...
When dealing with an unknown number of rows in Excel I recommend always use Long never Integer
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks