• 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
Re: Ranges and Variables in Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ranges and Variables in Excel


  • Subject: Re: Ranges and Variables in Excel
  • From: Stan Cleveland <email@hidden>
  • Date: Tue, 27 Nov 2007 12:02:04 -0800
  • Thread-topic: Ranges and Variables in Excel

Title: Re: Ranges and Variables in Excel
On 11/27/07 11:38 AM, Justin Laden wrote:

Is there a way to use a variable in an Excel range?

If my code for the variable--finds the last row with data in a workbook--is this:

set Z to first row index of last row of used range of active sheet

Is there a way to refer to a range that includes Z?

For example:

tell range "A1: GZ"

So far I have had no luck with this.


The range specification is a string, so just concatenate the desired elements together:
tell range ("A1:G" & Z)

Stan C.
 _______________________________________________
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

References: 
 >Ranges and Variables in Excel (From: "Justin Laden" <email@hidden>)

  • Prev by Date: Re: Repeat until ...the user chooses to stop?
  • Next by Date: Re: Ranges and Variables in Excel
  • Previous by thread: Ranges and Variables in Excel
  • Next by thread: Re: Ranges and Variables in Excel
  • Index(es):
    • Date
    • Thread