Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default referencing a cell in a hidden sheet

Hello,
I use the code below to enable an authorized user to view a particular sheet.

Question:
Rather than having the password directly in the code, i want to refer to it
in another hidden sheet called 'ColumnMap'. How can I do this? What i am
trying (see below) isn't working


If InputBox("The 'Actual vs Budget' report has restricted access.
Please enter a password to continue") < Sheets("Actual vs
Budget").Range("Q3").Value Then
MsgBox "Incorrect Password"
Else
Worksheets("Actual vs Budget").Visible = True
Worksheets("Actual vs Budget").Activate
Unload Me
End If
--
Carlee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default referencing a cell in a hidden sheet

Carlee
Please post back with more detail of what you have and what you want.
Is it that you have a number of passwords in the ColumnMap sheet, along with
a number of sheet names, one per password, and you want to unhide and
display the specific sheet that goes with the specific password? The code
that you have doesn't include the text "ColumnMap" and you say that's where
the password(s) are. Post back and you will get lots of help. HTH Otto
"Carlee" wrote in message
...
Hello,
I use the code below to enable an authorized user to view a particular
sheet.

Question:
Rather than having the password directly in the code, i want to refer to
it
in another hidden sheet called 'ColumnMap'. How can I do this? What i am
trying (see below) isn't working


If InputBox("The 'Actual vs Budget' report has restricted access.
Please enter a password to continue") < Sheets("Actual vs
Budget").Range("Q3").Value Then
MsgBox "Incorrect Password"
Else
Worksheets("Actual vs Budget").Visible = True
Worksheets("Actual vs Budget").Activate
Unload Me
End If
--
Carlee



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
Sheet referencing in a cell velvetlady Excel Discussion (Misc queries) 1 April 1st 08 06:24 PM
Referencing every 5th cell in another sheet [email protected] Excel Worksheet Functions 4 June 20th 07 02:49 PM
referencing a sheet named in a cell then using data from that sheet gbeard Excel Worksheet Functions 4 April 15th 05 08:42 AM
referencing a cell on another sheet JT[_2_] Excel Programming 7 April 6th 05 02:03 AM
Referencing a cell containing sheet name Marcotte A[_2_] Excel Programming 3 May 20th 04 11:26 PM


All times are GMT +1. The time now is 04:34 AM.

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"