Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Filter Excel bases on the current user

I need to hide rows in an Excel spredsheet based on who opened it.

How can I get the user ID or login name and how can I use this information
to hide rows?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Filter Excel bases on the current user

You need the network name, so use

environ("UserName")

Use like

Select Case Environ("UserName")
Case "Bob"
Rows("1:2").hidden=true
Case "Jim"
Rows("1:24").hidden=true
End Select

--
HTH

Bob Phillips

"Keith H" <Keith wrote in message
...
I need to hide rows in an Excel spredsheet based on who opened it.

How can I get the user ID or login name and how can I use this information
to hide rows?



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
Chart bases on user input dates Maver1ck666 Charts and Charting in Excel 1 September 7th 07 02:30 PM
microsoft excel has not been installed for current user Jimmy Excel Discussion (Misc queries) 2 June 22nd 07 09:46 PM
Filter Excel Pivot, based on user entry form Jayco Excel Discussion (Misc queries) 1 August 16th 06 06:07 PM
How do I merge 2 data bases in Excel avoiding duplicate records? Harrison Excel Discussion (Misc queries) 1 July 28th 06 08:45 PM
Restrict-Filter-Limit-Validate user input in Excel Dr. Thom Excel Discussion (Misc queries) 0 January 22nd 06 08:06 PM


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