Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Sheet / Hide & Unhide for editing only

Using a vba with a Macro,
How would I go about UnHiding a sheet for editing, then when editing is
complete, HIDE the sheet back.

My objective is to allow users to add to a listing, then when editing is
complete the workbook returns back to the activesheet and hides the other.
Possible? ..

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Sheet / Hide & Unhide for editing only

Very possible... with the only question being how you want to activate the
macro and how the user will let Excel know they are done editing. But this
would be the code to make the hide/unhide a sheet and to activate a sheet:
Worksheets("SheetName").Visible = True/False ' True to unhide, false to hide
Worksheets("SheetName").Activate ' to set the active worksheet


"thom hoyle" wrote:

Using a vba with a Macro,
How would I go about UnHiding a sheet for editing, then when editing is
complete, HIDE the sheet back.

My objective is to allow users to add to a listing, then when editing is
complete the workbook returns back to the activesheet and hides the other.
Possible? ..

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sheet / Hide & Unhide for editing only


Use a combination of the visible property

Sub StartEditing
'Trigger to let user edit sheet
Worksheets("Sheet1").Visible = True
End Sub

'User edits sheet

Sub DoneEditing
'Trigger when user is done editing sheet
Worksheets("Sheet1").Visible = False
End Sub

You'll need some action that the user takes which will trigger the
sheet's visible property to be set to True and then some way to know
when they are done editing the sheet and set the visible property back
to False.

HTH


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=381321

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Sheet / Hide & Unhide for editing only

Excellent, yes. I used both suggestions.
I simply put a CommandButton to HIDE the sheet on the Active sheet being
edited.
Then used a commandbar Popup to access the UnHide / Activate of the sheet.

thanks for replies.
thomas

"bhofsetz" wrote:


Use a combination of the visible property

Sub StartEditing
'Trigger to let user edit sheet
Worksheets("Sheet1").Visible = True
End Sub

'User edits sheet

Sub DoneEditing
'Trigger when user is done editing sheet
Worksheets("Sheet1").Visible = False
End Sub

You'll need some action that the user takes which will trigger the
sheet's visible property to be set to True and then some way to know
when they are done editing the sheet and set the visible property back
to False.

HTH


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=381321


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
hide unhide rows -Protected sheet Wanna Learn Excel Discussion (Misc queries) 3 August 5th 09 05:43 PM
how can I unhide/hide a sheet based on pull down selection? Keith Excel Discussion (Misc queries) 1 August 12th 08 04:17 PM
Hide/Unhide after protect sheet RKS Excel Discussion (Misc queries) 0 March 21st 08 05:03 AM
How to hide/unhide a sheet? Arup C[_2_] Excel Discussion (Misc queries) 1 October 23rd 07 12:16 PM
How to hide/unhide sheet Tabs in Excel 2007? Smibes Excel Worksheet Functions 10 March 28th 07 02:45 AM


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

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"