Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default Hyperlinking

I can't find out how to hyperlink to a specific sheet in a file, so I am
trying to write some event code, so when a particular cell is selected it
opens the file and selects the correct sheet. Should I be able to do it
through hyperlink or is code the only way?
If code is the only way, can someone help I can't get it to work?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Hyperlinking

'xl2002 object.Add(Anchor, Address, SubAddress, ScreenTip, TextToDisplay)
'xl97 object.Add(Anchor, Address, SubAddress)

Sub MoreTests()
ActiveSheet.Hyperlinks.Add anchor:=ActiveCell, _
Address:="C:\Documents and Settings\user\My Documents\Excel Files\Expenses.xls", _
SubAddress:="Sheet2!B14", ScreenTip:="Click to opens this file", TextToDisplay:="Expense File"
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Chris"
wrote in message
I can't find out how to hyperlink to a specific sheet in a file, so I am
trying to write some event code, so when a particular cell is selected it
opens the file and selects the correct sheet. Should I be able to do it
through hyperlink or is code the only way?
If code is the only way, can someone help I can't get it to work?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Hyperlinking

A hyperlink should be able to do it. When you do Insert=Hyperlink, then
select the file and location in the file you want to go to.

With reference to code, if you want help with code, you should post the code
you are having problems with - at least the relevant portions.

--
Regards,
Tom Ogilvy


"Chris" wrote:

I can't find out how to hyperlink to a specific sheet in a file, so I am
trying to write some event code, so when a particular cell is selected it
opens the file and selects the correct sheet. Should I be able to do it
through hyperlink or is code the only way?
If code is the only way, can someone help I can't get it to work?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default Hyperlinking

Thanks, but I managed to figure it out without code. I hadn't tried the
bookmark area of hyperlink

"Tom Ogilvy" wrote:

A hyperlink should be able to do it. When you do Insert=Hyperlink, then
select the file and location in the file you want to go to.

With reference to code, if you want help with code, you should post the code
you are having problems with - at least the relevant portions.

--
Regards,
Tom Ogilvy


"Chris" wrote:

I can't find out how to hyperlink to a specific sheet in a file, so I am
trying to write some event code, so when a particular cell is selected it
opens the file and selects the correct sheet. Should I be able to do it
through hyperlink or is code the only way?
If code is the only way, can someone help I can't get it to work?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlinking hounddigitydog Excel Discussion (Misc queries) 0 May 21st 08 04:09 PM
Hyperlinking xbabytam Excel Discussion (Misc queries) 1 August 21st 07 03:12 PM
Help! Hyperlinking? IoHeFy Excel Discussion (Misc queries) 2 April 16th 07 02:10 PM
Hyperlinking Niccalo Excel Worksheet Functions 2 May 31st 05 12:07 PM
Hyperlinking when it shouldn't... B.C.Lioness Excel Worksheet Functions 0 May 17th 05 07:15 PM


All times are GMT +1. The time now is 04:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"