Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Shown Drop-down list if login user=C

I have a problem here which I have not been able to solve, hope someone out there have a solution.

I have created a Shared worksheet for several people, when user A & B login, they see "999" in cell B1. However, if user C login, cell B1 become a drop-down list (something like Data Validation function). Is this possible?

Thank you.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Shown Drop-down list if login user=C

Perhaps users A and B have Excel 97, and User C has a newer version of
Excel.

If Row 1 is frozen (WindowFreeze Panes), a data validation list
dropdown won't appear in Excel 97. This was fixed in later versions.

Albert Sim wrote:
I have a problem here which I have not been able to solve, hope someone out there have a solution.

I have created a Shared worksheet for several people, when user A & B login, they see "999" in cell B1. However, if user C login, cell B1 become a drop-down list (something like Data Validation function). Is this possible?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Shown Drop-down list if login user=C

No. All user are using Excel 2000. Anyway, what I mean on my question is I wanted user A & B to see "999" in cell B1 when they login. However, when user C login in, I want it to change to a drop-down list

----- Debra Dalgleish wrote: ----

Perhaps users A and B have Excel 97, and User C has a newer version of
Excel

If Row 1 is frozen (WindowFreeze Panes), a data validation list
dropdown won't appear in Excel 97. This was fixed in later versions

Albert Sim wrote
I have a problem here which I have not been able to solve, hope someone out there have a solution
I have created a Shared worksheet for several people, when user A & B login, they see "999" in cell B1. However, if user C login, cell B1 become a drop-down list (something like Data Validation function). Is this possible



--
Debra Dalgleis
Excel FAQ, Tips & Book Lis
http://www.contextures.com/tiptech.htm


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Shown Drop-down list if login user=C

Can you rely on the username that they entered on the tools|options|general tab?

if yes, you could use an auto_open sub to do the work:

Option Explicit
Sub auto_open()

With Worksheets("sheet1").Range("b1")
Select Case LCase(Application.UserName)
Case Is = LCase("usernamea"), LCase("usernameb")
.Validation.Delete
.Value = 9999
Case Is = LCase("usernamec")
.ClearContents
With .Validation
.Delete
.Add Type:=xlValidateList, _
AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="a,b,c"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Case Else
MsgBox "I don't know what to do here!"
End Select

End With
End Sub

I wasn't sure what goes into the data|validation dropdown. You can record a
macro when you do it the way you like and just plop your code in there.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Albert Sim wrote:

No. All user are using Excel 2000. Anyway, what I mean on my question is I wanted user A & B to see "999" in cell B1 when they login. However, when user C login in, I want it to change to a drop-down list.

----- Debra Dalgleish wrote: -----

Perhaps users A and B have Excel 97, and User C has a newer version of
Excel.

If Row 1 is frozen (WindowFreeze Panes), a data validation list
dropdown won't appear in Excel 97. This was fixed in later versions.

Albert Sim wrote:
I have a problem here which I have not been able to solve, hope someone out there have a solution.
I have created a Shared worksheet for several people, when user A & B login, they see "999" in cell B1. However, if user C login, cell B1 become a drop-down list (something like Data Validation function). Is this possible?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



--

Dave Peterson

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 to automaticaly insert user name (login name) in excel? dheitz Excel Worksheet Functions 7 April 3rd 23 01:21 PM
In excell 2003, increasing number of items shown in drop down list Sekani Excel Worksheet Functions 1 February 10th 10 02:44 PM
increase number of items shown in drop down list? kojaks43 Excel Discussion (Misc queries) 11 October 12th 09 09:17 PM
making NT user/login user appear in a cell [email protected] Excel Worksheet Functions 1 March 3rd 09 03:41 AM
Increase number of items shown in drop down list? Heather Excel Discussion (Misc queries) 2 May 28th 08 06:11 PM


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

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"