Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Hide worksheet when moving back to another sheet

Hello,

I have a sheet called 'calculations' that I want normally to be hidden.
However, there is a button on one of the sheet (called 'inputs') for the
users who are interested in detail to unhide it and see it.

Sub Reveal()
With ThisWorkbook
If Worksheets("Calculations").Visible = False Then
Worksheets("Calculations").Visible = True
Worksheets("Calculations").Activate
End If
End With
End Sub

I have managed to get this working by using this forum.

Now, I would like to have a code that hides the sheet 'calculations' again
when the users return to the 'inputs'. I was going to have a button for the
users to use.

As I am not very good with macros, I'd be grateful if someone could help me.

Thanks very much in advance!

--
Johanna
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Hide worksheet when moving back to another sheet

Sub Macro2()
Sheets("Inputs").Activate
Sheets("Calculations").Visible = False
End Sub

--
Jacob


"Johanna Gronlund" wrote:

Hello,

I have a sheet called 'calculations' that I want normally to be hidden.
However, there is a button on one of the sheet (called 'inputs') for the
users who are interested in detail to unhide it and see it.

Sub Reveal()
With ThisWorkbook
If Worksheets("Calculations").Visible = False Then
Worksheets("Calculations").Visible = True
Worksheets("Calculations").Activate
End If
End With
End Sub

I have managed to get this working by using this forum.

Now, I would like to have a code that hides the sheet 'calculations' again
when the users return to the 'inputs'. I was going to have a button for the
users to use.

As I am not very good with macros, I'd be grateful if someone could help me.

Thanks very much in advance!

--
Johanna

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
moving back to prior tab kaywe44 Excel Discussion (Misc queries) 1 October 15th 09 06:15 PM
adding worksheet with macro but need to get back to 1st sheet [email protected] Excel Programming 4 December 13th 07 10:47 PM
Moving Cursor & Sheet back to the Original Location Ricky Pang Excel Programming 2 July 8th 05 04:18 PM
How do I hide columns using a button that slides back and forth Virginia53 Excel Worksheet Functions 1 May 28th 05 12:51 AM


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