Macros

R

Rick

How do I use the "end" command in a macro? Or, can
someone recommend a good book that will explain macros to
me?
 
O

Otto Moehrbach

Rick
Much the same way you use the End key. Say the active cell is A10 and
you want to do End - Up but do it in code. You would write it this way:
ActiveCell.End(xlUp).Select or .Copy or whatever you want to do with that
cell. HTH Otto
 

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