Re: excel - hyperlinks errors
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