Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

InputBox Drop Down List?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Astello - 12 Oct 2006 14:46 GMT
I'm wondering if you can have a drop down list in an InputBox, or if
there is something similar to an InputBox for this function.  I am
running a macro in Excel where I want the user to be able to choose a
city from a drop down list, and then have whatever city they choose
choose put an associated zip code into the spreadsheet.  Is this
possible?
Dave Peterson - 12 Oct 2006 15:02 GMT
Not using an inputbox, but you could design a userform with a combobox that
offers the cities you want to support.  You could use =vlookup() in your code or
just plop the results of the combobox into a worksheet cell and use =vlookup()
in an adjacent cell.

This is from Debra Dalgleish's site:
http://contextures.com/xlUserForm01.html

Tom Ogilvy posted these links:
Peter Aiken Articles:
Part I
http://msdn.microsoft.com/library/en-us/dnoffpro01/html/IntroductiontoUserFormsP
artI.asp

Part II
http://msdn.microsoft.com/library/en-us/dnoffsol02/html/IntroductiontoUserFormsP
artII.asp


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

> I'm wondering if you can have a drop down list in an InputBox, or if
> there is something similar to an InputBox for this function.  I am
> running a macro in Excel where I want the user to be able to choose a
> city from a drop down list, and then have whatever city they choose
> choose put an associated zip code into the spreadsheet.  Is this
> possible?

Signature

Dave Peterson

Astello - 13 Oct 2006 17:15 GMT
Forgive me for being naive, but how do I "plop" the values from the
combobox into a worksheet?  That's what I'm having trouble defining at
this point.

> Not using an inputbox, but you could design a userform with a combobox that
> offers the cities you want to support.  You could use =vlookup() in your code or
[quoted text clipped - 20 lines]
> > choose put an associated zip code into the spreadsheet.  Is this
> > possible?
Dave Peterson - 13 Oct 2006 19:37 GMT
Debra's site shows one way to do it.

> Forgive me for being naive, but how do I "plop" the values from the
> combobox into a worksheet?  That's what I'm having trouble defining at
[quoted text clipped - 28 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.