• 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
find last row in excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find last row in excel


  • Subject: find last row in excel
  • From: Robert Poland <email@hidden>
  • Date: Sun, 31 Jul 2005 11:10:10 -0600

Hi,

I wish to find the last row of data in an excel spreadsheet. This works, but take too much time. Isn't there a command that will do the same thing?

set readRow to 1000
tell application "Microsoft Excel"
	Activate
	Select Worksheet "Averages"
	set readCell to "$C$" & readRow
	set x to Value of Cell readCell
	repeat while x ‚ 0
		set y to x
		set readCell to "$C$" & readRow
		set x to Value of Cell readCell
		set readRow to readRow + 1
	end repeat
end tell
set y to y as integer
y

Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: find last row in excel
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Copy file across volumes
  • Next by Date: Re: find last row in excel
  • Previous by thread: Re: unixy paths to alias
  • Next by thread: Re: find last row in excel
  • Index(es):
    • Date
    • Thread