How do I use the Shift+Ctrl+down feature in a macro

G

Guest

I need to use a macro for new spreadsheets on a daily basis. I want to use
Shift+Ctrl+down arrow to copy down to the last record and each spreadsheet
has a different number of records. It works fine for the first spreadsheet
which had 571 rows but when I use it on another it only goes down to row 571
no matter how many rows are in the spreadsheet. Any ideas?
 
G

Guest

Assuming that the cell point is at the starting cell the code would be:

Range(Selection, Selection.End(xlDown)).Select

You could have recorded this little snippet too.
 
G

Guest

Post your code. We can give you some general answers but it would be better
if we could see your code...
 
G

Guest

You are also assuming there are no blank cells anywhere in that column before
the last entry. But you are correct that it would be the equivalent command.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top