• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Excel: finding last used cell in a range
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Excel: finding last used cell in a range


  • Subject: Excel: finding last used cell in a range
  • From: Oakley Masten <email@hidden>
  • Date: Mon, 2 Feb 2009 13:55:53 -0800 (PST)

Mon, 2 Feb 2009  Justin Laden wrote


Hey everyone,

I had a line in some of my scripts that I thought gave me the last
used row in a range--and I mean the last cell with data inside.
set endRow to first row index of last row of used range of active sheet
But I don't think it is working.

I tried Paul's code from the VBA transition guide, and I couldn't get
it to compile--any ideas?


Justin  This works for me using Excel 2004


tell application "Microsoft Excel"

set cols to count of columns of used range of active sheet

set rws to count of rows of used range of active sheet

end tell


Oakley


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Excel: finding last used cell in a range
      • From: Robert Poland <email@hidden>
  • Prev by Date: Re:Excel: finding last used cell in a range
  • Next by Date: Re: Excel: finding last used cell in a range
  • Previous by thread: Re:Excel: finding last used cell in a range
  • Next by thread: Re: Excel: finding last used cell in a range
  • Index(es):
    • Date
    • Thread