Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get USERNAME then IF Routine on Excel

Status
Not open for further replies.

liamm

Technical User
Aug 12, 2002
102
GB
Hi,
I require a way to only show a worksheet if 2 designated users log on on their networked PC's. I think I would use the Get username routine but get stuck with how to use this username to perform an IF routine to show the specific worksheet.
Any alternative method would considered
Thanks

If you can help, GREAT
If I can help, EVEN BETTER
 
you could put it in worksheet on open events

return the user name

if username = XXXXX then
Sheet1.Visible = xlSheetHidden
sheet2.visible = xlsheetvisible
elseif username = AAAAAA then
Sheet1.Visible = xlsheetvisible
sheet2.visible = xlSheetHidden
end if





Chance,

Filmmaker, gentleman and up for parole shortly
,
 
If you are using this as security I would use xlSheetVeryHidden.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top