Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel password but cant hide the sheets before entering password

Hi there all

I have made my system and i have a small password box on the firs
page, it is just using a password that is on a sheet, in the system,
want to know how i can hide all of the sheets until the right passwor
is entered and it takes me to my main menu sheet.

cheers

from C

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel password but cant hide the sheets before entering password

you can try this:

Private Sub Workbook_Open()
ActiveWorkbook.IsAddin = True
If InputBox("Enter Password", "Enter Password") = "ThePassword" Then
'get password here - exit if not
ActiveWorkbook.IsAddin = False
Else
ThisWorkbook.Close savechanges:=False
End If
End Sub



If you are using Excel 97, this may create an application error, depending
on whatelse you do.

Also, if a user doesn't enable macros - workbook is open. You may want to
set the Isaddin property to true before distribution. If macros are not
enabled, the only way then to view the workbook would be to go into the VB
editor and set IsAddin = false, which most people won't know how to do. Of
course, you could also save the workbook with a password - and this would
solve this issue.

Ken V.


"cakonopka " wrote in message
...
Hi there all

I have made my system and i have a small password box on the first
page, it is just using a password that is on a sheet, in the system, i
want to know how i can hide all of the sheets until the right password
is entered and it takes me to my main menu sheet.

cheers

from CK


---
Message posted from http://www.ExcelForum.com/



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 do I hide a column using a password in an excel spreadsheet Help in excel New Users to Excel 0 January 22nd 06 12:36 PM
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. Daniel Excel Worksheet Functions 0 June 23rd 05 11:56 PM
How do I hide a worksheet in Excel and use a password to un-hide . Dchung Excel Discussion (Misc queries) 3 December 2nd 04 06:24 AM
Password to hide and unhide sheets Veera Excel Programming 2 July 23rd 03 04:23 PM
Password to hide and unhide sheets Patrick Molloy Excel Programming 0 July 23rd 03 04:04 PM


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