Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hide/Unhide with passwortd prompt

I'm working on a spreadsheet for my employer that has a number of sheets
that need to be hidden from some users, but visible to others (e.g. costs).
All users need to be abler to make changes, but only some will see ceratin
areas.

The restricted users are mobile sales people working with laptops.

The workbook is currently set up with all sheets but one hidden and I am
using command buttons with macros to navigate in the workbook and
hide/unhide the sheets.

How can I set this so that users' are prompted for a password when they want
to access certain areas.

Thanks

DRD


  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Hide/Unhide with passwortd prompt

you could have an input box pop up when they want to access the sheets, with
a password specified in code, or a userform with a 'masked' textbox
(neither really secure)

sub commandbutton1_click()
select case inputbox("Please enterpassword","Password")
case "mypassword"
code to show hidden sheet
case else
msgbox "I'm sorry that is an incorrect password"
exit sub
end select
end sub
--
When you lose your mind, you free your life.


"David Duggan" wrote:

I'm working on a spreadsheet for my employer that has a number of sheets
that need to be hidden from some users, but visible to others (e.g. costs).
All users need to be abler to make changes, but only some will see ceratin
areas.

The restricted users are mobile sales people working with laptops.

The workbook is currently set up with all sheets but one hidden and I am
using command buttons with macros to navigate in the workbook and
hide/unhide the sheets.

How can I set this so that users' are prompted for a password when they want
to access certain areas.

Thanks

DRD



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hide/Unhide with passwortd prompt

This works except for the fact that the password appears in the Input Box in
clear text rather using characters such as asteriks. I have a form built
that works, except that I would need a number of forms for this
spreadsheet.

If I could declare a variable and then use the variable to call a specific
macro, I can build all my requirements into one form. That's where I am
right now, but I'm having problems with it. Maybe just syntax, I don't know.

Thanks for the help.

DRD

"ben" (remove this if mailing direct) wrote in message
...
you could have an input box pop up when they want to access the sheets,
with
a password specified in code, or a userform with a 'masked' textbox
(neither really secure)

sub commandbutton1_click()
select case inputbox("Please enterpassword","Password")
case "mypassword"
code to show hidden sheet
case else
msgbox "I'm sorry that is an incorrect password"
exit sub
end select
end sub
--
When you lose your mind, you free your life.


"David Duggan" wrote:

I'm working on a spreadsheet for my employer that has a number of sheets
that need to be hidden from some users, but visible to others (e.g.
costs).
All users need to be abler to make changes, but only some will see
ceratin
areas.

The restricted users are mobile sales people working with laptops.

The workbook is currently set up with all sheets but one hidden and I am
using command buttons with macros to navigate in the workbook and
hide/unhide the sheets.

How can I set this so that users' are prompted for a password when they
want
to access certain areas.

Thanks

DRD





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 row VBA Scafidel[_2_] Excel Discussion (Misc queries) 1 March 23rd 09 05:28 PM
hide/unhide brownti Excel Discussion (Misc queries) 3 February 6th 07 07:14 PM
Hide/unhide Jock W Excel Worksheet Functions 4 October 4th 05 05:02 PM
Hide and unhide Marcel Excel Discussion (Misc queries) 1 March 10th 05 11:50 PM
password prompt to unhide sheet Jeff Excel Programming 1 June 9th 04 08:40 PM


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