PC Review


Reply
Thread Tools Rate Thread

Creating a drop down list

 
 
=?Utf-8?B?YmV0aGpveTc5?=
Guest
Posts: n/a
 
      13th Nov 2007
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
 
Reply With Quote
 
 
 
 
Ron Coderre
Guest
Posts: n/a
 
      13th Nov 2007
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" <(E-Mail Removed)> wrote in message
news:39736EAE-5B37-4527-B8C5-(E-Mail Removed)...
>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



 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      13th Nov 2007
You can't, that's the way it is. But you could always make the DV cell
distinct via eg creative formatting. Eg: using dark red fill with bold white
font for the DV cell, with a text phrase "Select" in the cell just above the
DV, or use a bold arrow, or a call-out autoshape to point to the DV cell, etc
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"bethjoy79" wrote:
> 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

 
Reply With Quote
 
=?Utf-8?B?YmV0aGpveTc5?=
Guest
Posts: n/a
 
      13th Nov 2007
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" <(E-Mail Removed)> wrote in message
> news:39736EAE-5B37-4527-B8C5-(E-Mail Removed)...
> >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

>
>
>

 
Reply With Quote
 
Ron Coderre
Guest
Posts: n/a
 
      13th Nov 2007
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" <(E-Mail Removed)> wrote in message
news:13451359-7B25-49D4-826F-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:39736EAE-5B37-4527-B8C5-(E-Mail Removed)...
>> >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

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?YmV0aGpveTc5?=
Guest
Posts: n/a
 
      13th Nov 2007
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" <(E-Mail Removed)> wrote in message
> news:13451359-7B25-49D4-826F-(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> >> news:39736EAE-5B37-4527-B8C5-(E-Mail Removed)...
> >> >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
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Ron Coderre
Guest
Posts: n/a
 
      13th Nov 2007
Can you post:
the name of the workbook,
the name of the worksheet,
and the reference to the cell with the DV drop-down list
that you want displayed upon opening the workbook?

Also post the code you're using.

We'll see what we can to to help you.
--------------------------

Regards,

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



"bethjoy79" <(E-Mail Removed)> wrote in message
news:08941042-2D52-442F-9BE0-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:13451359-7B25-49D4-826F-(E-Mail Removed)...
>> > 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" <(E-Mail Removed)> wrote in message
>> >> news:39736EAE-5B37-4527-B8C5-(E-Mail Removed)...
>> >> >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
>> >>
>> >>
>> >>

>>
>>
>>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Creating a Drop Down List from a List in another worksheet Pat Microsoft Excel Misc 1 25th Nov 2008 06:44 PM
creating a drop down list Brian Dsilva Microsoft Excel New Users 3 25th Jul 2008 11:31 PM
Re: Creating a Drop-Down List Box Sue Mosher [MVP-Outlook] Microsoft Outlook Discussion 2 12th Dec 2006 11:53 PM
Creating a drop down list from another drop down =?Utf-8?B?Sm9keQ==?= Microsoft Excel Misc 2 8th Mar 2006 08:14 PM
creating a drop-down list in a cell (NOT a combo or list box) Carrie Microsoft Excel Worksheet Functions 4 29th Jul 2003 05:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:41 PM.