#1   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 137
Default suggestion

I have created 8 buttons on "home page" which takes them to different hidden
sheets. On each of those hidden tabs is a button that says back to home. The
questions i have is i would like to have on those hidden tabs the same links
that are on the home page. In other words they wouldn't have to click the
home button to get to another tab. I hope this makes sense. But how would i
do this i also want the sheet to go back to being hidden once they click on
another button. What code would i use. I hope someone understand what i am
asking.
--
Thank you, JR
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 2,344
Default suggestion

Hi,

Here is sample code

Sub Button1_Click()
Sheets("Sheet1").Visible = xlSheetVeryHidden
Sheets("Sheet2").Visible = xlSheetVisible
Sheets("Sheet2").Activate
End Sub

If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"Brenda" wrote:

I have created 8 buttons on "home page" which takes them to different hidden
sheets. On each of those hidden tabs is a button that says back to home. The
questions i have is i would like to have on those hidden tabs the same links
that are on the home page. In other words they wouldn't have to click the
home button to get to another tab. I hope this makes sense. But how would i
do this i also want the sheet to go back to being hidden once they click on
another button. What code would i use. I hope someone understand what i am
asking.
--
Thank you, JR

  #3   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 137
Default suggestion

I will try this code but where do i apply it? Basically there will be 8
buttons on each page, if i try your code where should i put it.
--
Thank you, Brenda


"ShaneDevenshire" wrote:

Hi,

Here is sample code

Sub Button1_Click()
Sheets("Sheet1").Visible = xlSheetVeryHidden
Sheets("Sheet2").Visible = xlSheetVisible
Sheets("Sheet2").Activate
End Sub

If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"Brenda" wrote:

I have created 8 buttons on "home page" which takes them to different hidden
sheets. On each of those hidden tabs is a button that says back to home. The
questions i have is i would like to have on those hidden tabs the same links
that are on the home page. In other words they wouldn't have to click the
home button to get to another tab. I hope this makes sense. But how would i
do this i also want the sheet to go back to being hidden once they click on
another button. What code would i use. I hope someone understand what i am
asking.
--
Thank you, JR

  #4   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 897
Default suggestion

Brenda,

It goes in the sheet module for each worksheet.

See
http://www.mcgimpsey.com/excel/modules.html
http://www.rondebruin.nl/code.htm


HTH,
JP

On Oct 25, 4:56*pm, Brenda wrote:
I will try this code but where do i apply it? Basically there will be 8
buttons on each page, if i try your code where should i put it.
--
Thank you, Brenda



"ShaneDevenshire" wrote:
Hi,


Here is sample code


Sub Button1_Click()
* * Sheets("Sheet1").Visible = xlSheetVeryHidden
* * Sheets("Sheet2").Visible = xlSheetVisible
* * Sheets("Sheet2").Activate
End Sub


If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


  #5   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 137
Default suggestion

Shane,
Here is what i have done... because i am on the Herddescription tab and i
want to go to another tab i put in the tab that i now want to bring up. But
when i apply the macro to the button it brings up an error highlighting the
Sub Button1_Click(). Am i doing something wrong?

Sub Button1_Click()
Sheets("HerdDescription").Visible = xlSheetVeryHidden
Sheets("Requirements").Visible = xlSheetVisible
Sheets("Requirements").Activate
End Sub
--
Thank you, Brenda


"ShaneDevenshire" wrote:

Hi,

Here is sample code

Sub Button1_Click()
Sheets("Sheet1").Visible = xlSheetVeryHidden
Sheets("Sheet2").Visible = xlSheetVisible
Sheets("Sheet2").Activate
End Sub

If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"Brenda" wrote:

I have created 8 buttons on "home page" which takes them to different hidden
sheets. On each of those hidden tabs is a button that says back to home. The
questions i have is i would like to have on those hidden tabs the same links
that are on the home page. In other words they wouldn't have to click the
home button to get to another tab. I hope this makes sense. But how would i
do this i also want the sheet to go back to being hidden once they click on
another button. What code would i use. I hope someone understand what i am
asking.
--
Thank you, JR



  #6   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 22,906
Default suggestion

Brenda

Not sure what your purpose is but...............

If HerdDescription sheet is only visible sheet, you cannot hide it before
unhiding another sheet.

You must always have one sheet visible.

Change your code to unhide first, then hide...............

Sub Button1_Click()
Sheets("Requirements").Visible = xlSheetVisible
Sheets("Requirements").Activate
Sheets("HerdDescription").Visible = xlSheetVeryHidden
End Sub


Gord Dibben MS Excel MVP

On Thu, 30 Oct 2008 10:48:06 -0700, Brenda
wrote:

Shane,
Here is what i have done... because i am on the Herddescription tab and i
want to go to another tab i put in the tab that i now want to bring up. But
when i apply the macro to the button it brings up an error highlighting the
Sub Button1_Click(). Am i doing something wrong?


Sheets("HerdDescription").Visible = xlSheetVeryHidden
Sheets("Requirements").Visible = xlSheetVisible
Sheets("Requirements").Activate
End Sub


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
How to see New Suggestion miroslj Excel Discussion (Misc queries) 1 December 9th 07 12:20 AM
I need a suggestion on... Atomic Storm New Users to Excel 5 May 3rd 07 11:27 PM
Suggestion IGFET909 Excel Worksheet Functions 5 April 4th 06 08:57 PM
formula suggestion please Anthony Excel Worksheet Functions 2 January 16th 06 02:13 PM
Suggestion on this one? Dale Meredith Excel Discussion (Misc queries) 1 August 12th 05 12:36 AM


All times are GMT +1. The time now is 09:47 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"