View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
bethjoy79 bethjoy79 is offline
external usenet poster
 
Posts: 4
Default Creating a drop down list

Ron,
Thanks for the clarification.
I did copy and paste the formula into the View Code, changing the name of
the sheet and cell, but it didn't change anything. I have three sheets in
the workbook and I changed it both in the "This Workbook" and "Sheet 2." Did
I do something wrong?
I have a spreadsheet that someone sent me that has what I'm looking for, but
the sheet is locked , so I know it can be done, I just can't figure it out.
UGH?!!

Beth

"Ron Coderre" wrote:

Ooops! Sorry for being vague..

Heres what you do:

Right-click on the sheet tab and select: View Code
(that will open the Visual Basic Editor and display the code module for the
sheet.)

The left side of the VBE will list the workbook and all of its sheets.
Double-click on the "This Workbook" item
(that will display the code module for the workbook)

Copy the below code and paste it into that window (changing the sheet name
and cell reference):

Private Sub Workbook_Open()
Sheets("Sheet1").Activate
Range("B2").Select
Application.SendKeys ("%{DOWN}")
End Sub

Then...Save the workbook.....Close it......then re-open it.

Does that help?

--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)



"bethjoy79" wrote in message
...
Ron, I'm sorry, you kind of lost me with your code. Do I input this code
in
the cell? I appreciate your help!

"Ron Coderre" wrote:

Try something like this Workbook_Open event code:

Private Sub Workbook_Open()
With Sheet1.Range("B2")
.Select
Application.SendKeys ("%{DOWN}")
End With
End Sub

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"bethjoy79" wrote in message
...
I used validation to create a drop down list, but my question is how to
make
that drop down appear when I open the worksheet instead of just
clicking
on
the cell?

Thanks,
Beth