LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Click on a hyperlink to hide or show a spreadsheet

Hi Bob,

Actually I worked it out. I realized I did not need the hidden binders to
have an actual hyperlink so I eliminated that. In case you are wondering, I
answered your questions in-between.

"Bob Bridges" wrote:

I can't tell exactly what you're saying. Let's spell it out:

1) Can you, without using VBA, create a hyperlink from a
cell in one worksheet that when clicked will switch over
to display another worksheet?


Yes. I use a VBA code to list all of the Tab names on a spreadsheet, then
use hyperlink code so when I select the spreadsheet name, that spreadsheet
becomes active. Works fine.

2) Can you write VBA code that, when executed, will
change the active sheet from one to another?


Sure.

3) You say you can't get VBA to recognize the
worksheet name that is in the hyperlink. I think
you mean you have a hyperlink set up, of the
type I mention in question 1, and you also have
some VBA code trying to read it. a) What
advantage do you get from combining both?
And b) I've never tried that, but from the
documentation I see how the various objects
should interact; what error are you getting?


Since the names of the spreadsheets can change names and locations, I was
using a hyperlink formula with an Indirect command. I think that was
confusing VBA.
Once I removed that from the hidden folders it started working.

4) You say "The cells that contain the hyperlinks
will not change location". a) By "location" you
mean the URL each link is pointing to, right? b)
Do you mean you try to change the destination
address of a link and cannot? Why not?


I meant that cell c3 will contain the name of the first hidden document,
cell c4 will contain the second, etc. The names of the links will change as
the spreadsheet names do, but c3 will always contain the name of the first
hidden document.
No to the last question.




 
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
Hide "Show details" when right click on data field in Pivot Table Anh Tuan Excel Discussion (Misc queries) 0 June 18th 09 07:57 AM
Want to Hide columns in spreadsheet but NOT hide data in chart. KrispyData Charts and Charting in Excel 1 March 20th 09 04:45 PM
right click hide General[_2_] Excel Programming 1 July 6th 07 11:06 AM
How do I hide a formula so it will not show on the spreadsheet? Brenda Excel Worksheet Functions 1 April 5th 06 02:14 PM
How do I add hyperlink to Right click Kyle Excel Worksheet Functions 1 December 29th 04 05:58 PM


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

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

About Us

"It's about Microsoft Excel"