[mso] Excel macro

  • From: "DiMarco, Suzanne " <SDiMarco@xxxxxxxxxxxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Tue, 11 Nov 2003 14:39:14 -0500

I need help with an Excel macro.  I get a daily spreadsheet and one of the
things I need to do is cover the range to sort and print.  The column and
column headings stay the same just the number of rows change. I'm using the
macro recorder (don't know vba) to do the following:
Start at cell a2
Using Shift, Cntl, down arrow to cover the range down
Using Shift, right arrow to cover the columns over to K (some cells are
empty on the last row so I can't use Cntl, Shift, right arrow).

This is the code from the editor:
Range("A2").Select
    Range(Selection, Selection.End(xlDown)).Select
    Range("A2:K104").Select

I need to change "K104" so it doesn't reference a specific cell in K.  I
need to go to the last filled row in A and then over to K.  Can you help me?
Thank you.




Suzanne DiMarco
327-7517
Desktop Solutions




*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: