LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Stop a user navigating certain sheets

Susan, JLGWhiz
I opted to hide sheets in the Workbook_BeforeClose and then conditionally
open them in the Workbook_Open depending on the visibility of the button in
the "current round" sheet.

Works fine.

Thank you both for your assistance
Sandy


"JLGWhiz" wrote in message
...
Hi Susan, just wanted to add that the Worksheet_Activate event can also be
used in the sheets that Sandy wants to keep out of view of the user until
certain criteria is met. If it is a matter of completing certain cells
with
data you could:

Private Sub Worksheet_Activate()
If IsEmpty(Worksheets(1).Cells(27, 15)) Then
Worksheets(1).Activate
End If
End sub

This would continue to send the user back to sheet 1 until something was
entered into the key cell. That does not guarantee that the data entered
is
correct.

"Susan" wrote:

it all depends how savvy your users are. personally, mine wouldn't
even begin to know how to unhide a sheet. you can make a sheet hidden
with VBA (below) or using the Format Sheet Hide command from the
toolbar.

activeworkbook.worksheets("sheet1").visible = xlHidden

which can be unhidden using VBA or using the Format Sheet Unhide
command from the toolbar. or you can make a worksheet VERY hidden
(which you can only unhide by VBA or using the VB editor):

activeworkbook.worksheets("sheet1").Visible = xlVeryHidden

if i were you i would use a workbook_open macro to hide xlVeryHidden
all the sheets except the two you have listed until that command
button has been clicked. then, as part of the SameAmendments_click
macro you could unhide the other sheets:

activeworkbook.Worksheets("sheet1").Visible = True

hope i've got it right, and hope it helps you!
:)
susan


On Nov 7, 2:01 pm, "Sandy" wrote:
I have two worksheets, namely "Current Round" and "Current Round
Detailed"
along with 6 others that are visible. What I would like to do is
contain the
user to the two sheets above until a command button has been clicked.

The command button is "SaveAmendments", and becomes hidden once the
attached
code is run.

I suppose the layman's way would be something like

If Worksheets("Current Round").Buttons("SaveAmendment").Visible = True
Then

Disable moving to any sheet other than "Current Round" and
"Current
Round Detailed" (or maybe better to just hide the other sheets?)
Prevent user closing application

End If

Your thoughts on the above are appreciated
Sandy



 
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
Can you stop user name from appearing in comment? mattcreek Setting up and Configuration of Excel 2 June 7th 09 07:47 PM
Macro stop if file in use by other user? Bry Excel Discussion (Misc queries) 5 August 11th 06 04:27 PM
Navigating in Excel sheets Duane Excel Discussion (Misc queries) 1 February 23rd 06 06:24 PM
How to stop the user from seeing what's going on Jeff Excel Programming 4 May 24th 05 04:01 PM
Navigating Excel Sheets with C++? Jerry Excel Programming 2 May 1st 05 04:17 PM


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