Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to View Protected Sheet

I have a workbook which is a shared workbook. The
workbook contains 2 worksheets and a user form. The 1st
sheet is like a main menu, and the 2nd sheet contains the
information extracted from the user form. I don't want any
sheet tabs at the bottom.
I want to put a macro on the main menu (sheet1) that when
pushed will prompt for a password and if it is correct
will show "Sheet 2" if the password entered is incorrect
it will just stay on Sheet 1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Macro to View Protected Sheet

To hide the sheet tabs go to tools|options| and under the view tab uncheck
sheet tabs. Then add your command button on sheet1, right click, click view
code, then add:
Your code for entering a password. You can either use an Input box (the
password will be viewable for those looking over the shoulder of the user)
or you can make up a userform with a textbox (set its password character
property to *, or ? and your choice. The userform is better for password
invisibility. And I think it's easier to write code for a correct or
incorrect password.

HTH
"Glenn" wrote in message
...
I have a workbook which is a shared workbook. The
workbook contains 2 worksheets and a user form. The 1st
sheet is like a main menu, and the 2nd sheet contains the
information extracted from the user form. I don't want any
sheet tabs at the bottom.
I want to put a macro on the main menu (sheet1) that when
pushed will prompt for a password and if it is correct
will show "Sheet 2" if the password entered is incorrect
it will just stay on Sheet 1



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
Macro & Protected sheet Lise Excel Discussion (Misc queries) 2 April 11th 10 10:36 PM
macro on protected sheet-error michaelberrier Excel Discussion (Misc queries) 6 June 11th 06 06:31 PM
How to view a custom view when the worksheet is protected? JulesJam Excel Worksheet Functions 0 March 6th 06 02:15 PM
use macro button to run macro in protected sheet earl Excel Discussion (Misc queries) 3 February 26th 06 10:21 PM
Using a Macro with the sheet protected. Jason Watts Excel Programming 1 January 6th 04 09:31 PM


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