Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Object hyperlink produces "Reference is not valid" error after worksheet name change

Hi all,

I have quite a number of subs in my workbook that are triggered through
Worksheet_FollowHyperlink, which is called through the use of an object
(i.e. Ctrl+K) hyperlink. For example, I have a "Sort" function that
sorts my worksheet when a certain cell is clicked on.

The problem is, these object hyperlinks need to refer to a cell on the
sheet they are on. I am currently still designing this workbook and
I've needed to change the names of the various worksheets several
times. But each time I do so, clicking on one of the links brings up
the following message:

"Reference is not valid."

before carrying on and running the code anyway. The only way I seem to
be able to right it is by selecting the hyperlink, hitting Ctrl+K again
and updating the sheet name in the Edit Hyperlink dialog box. This has
the effect of resetting the formatting on the link, which means about
15-20mins work every time my boss tells me she wants a different name
for the worksheet!

Any ideas about how I get around this problem?

Tristan Jakob-Hoff

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Object hyperlink produces "Reference is not valid" error after wor

Thanks Jim,

Not a bad idea, but I'm a bit sketchy on this bit:

'Create the hyperlink


Is it possible to create object hyperlinks programatically?

Best regards,

Tristan Jakob-Hoff

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Object hyperlink produces "Reference is not valid" error after wor

Thanks Jim,

Not a bad idea, but I'm a bit sketchy on this bit:

'Create the hyperlink


Is it possible to create object hyperlinks programatically?

Best regards,

Tristan Jakob-Hoff

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
Pivot Table "Data source reference is not valid" error cause? Bill Neurohr Excel Discussion (Misc queries) 1 March 11th 09 10:16 PM
"Reference not valid" error when I try to edit the macro in excel Yuvaraj Excel Discussion (Misc queries) 1 January 10th 08 08:32 PM
Pivot Table - Error "Reference Is Not Valid" Olly Excel Discussion (Misc queries) 0 May 22nd 07 09:27 AM
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error [email protected] Excel Discussion (Misc queries) 4 September 25th 06 01:35 PM
"Reference is not valid" error when using analysis toolpak in an add-in tom[_5_] Excel Programming 0 January 16th 04 05:24 PM


All times are GMT +1. The time now is 08:08 AM.

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"