• 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: excel - hyperlinks errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: excel - hyperlinks errors


  • Subject: Re: excel - hyperlinks errors
  • From: Stan Cleveland <email@hidden>
  • Date: Fri, 4 Feb 2011 17:15:18 -0800

On Feb 4, 2011, at 3:18 PM, Gaurav Walia wrote:

I'm thinking to script excel (have all2004 – 2011)

tell application "Microsoft Excel"
activate
make new hyperlink of active cell at active sheet with properties {address:"Sheet2!A1"}
end tell

This executes.  The problem is that when you click on the hyperlink there is an error.  Looking at the link. It's missing the "#" in the field

Objective is to get the field (command+K) to display #Sheet2!A1".  The code above doesn't work.

Changing this address:"Sheet2!A1" to address:"#Sheet2!A1" gets "#Sheet2!A1#Sheet2!A1" in the field.

So how do I get the link to field to display #Sheet2!A1?

Hi Gaurav,

Your syntax needs a little tweak. The following code (using Excel 2008 OMM) should work:

tell application "Microsoft Excel"
activate
make new hyperlink of active cell at active sheet with properties {sub address:"Sheet2!A1", address:""}
end tell

HTH,
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

  • Follow-Ups:
    • Re: excel - hyperlinks errors
      • From: "Walia, Gaurav (333G)" <email@hidden>
References: 
 >excel - hyperlinks errors (From: "Walia, Gaurav (333G)" <email@hidden>)

  • Prev by Date: excel - hyperlinks errors
  • Next by Date: Re: excel - hyperlinks errors
  • Previous by thread: excel - hyperlinks errors
  • Next by thread: Re: excel - hyperlinks errors
  • Index(es):
    • Date
    • Thread