Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macros using drop downs

Hi, this may be an elementary question, but I don't have much experience
creating macos.

I have created a form with a combination of text fields, check boxes and
drop downs. To make it easier for the user, I want to create a macro so that
if they choose a location name, it automatically fills in the location
address, and phone numbers that are in different drop downs. But when I try
to record a macro, it won't let me pick from a drop down. Am I missing a set
here? I have read some previous entries on this site and it looks like I may
have to use programming language. If so, how do I do that and what is it?
Thanks in advance for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Macros using drop downs

G'day Fly

Rather than using a macro, and or for that matter dropdowns on the
supplimental information you want to automate, I would use a LookUp.

Assumed New Lookup Sheet Name: MyLookups



A B
C D
1 Location Address
Phone Contact

2 Australia Capital City Dr, Canberra
61 2 Blah Blah Kevin Rudd (PM)
3 USA Washington Blvd, DC
Uncle Sam Bush Pig

And So On...............



On your Main User Sheet:


A B C
D
1 Location Address Phone
Contact
Dropdown B2
=IF($A1="","",(LOOKUP($A1,MyLookUps!$A$2:$D$63635, MyLookUps!$B$2:$B$63635)))
lists C2
=IF($A1="","",(LOOKUP($A1,MyLookUps!$A$2:$D$63635, MyLookUps!$C$2:$C$63635)))

D2
=IF($A1="","",(LOOKUP($A1,MyLookUps!$A$2:$D$63635, MyLookUps!$D$2:$D$63635)))

Copy down as required

HTH
Mark.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Macros using drop downs

Ooooops!

Sorry Fly

should be

B2
=IF($A2="","",(LOOKUP($A2,MyLookUps!$A$2:$D$63635, MyLookUps!$B$2:$B$63635)))
C2
=IF($A2="","",(LOOKUP($A2,MyLookUps!$A$2:$D$63635, MyLookUps!$C$2:$C$63635)))
D2
=IF($A2="","",(LOOKUP($A2,MyLookUps!$A$2:$D$63635, MyLookUps!$D$2:$D$63635)))

Regards
Mark


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macros using drop downs

Thanks for the reply Mark, but when I printed it I realized that I must have
been under the wrong part in Office. My issued is in Word not Excel.

Any ideas for MS Word?



"NoodNutt" wrote:

G'day Fly

Rather than using a macro, and or for that matter dropdowns on the
supplimental information you want to automate, I would use a LookUp.

Assumed New Lookup Sheet Name: MyLookups



A B
C D
1 Location Address
Phone Contact

2 Australia Capital City Dr, Canberra
61 2 Blah Blah Kevin Rudd (PM)
3 USA Washington Blvd, DC
Uncle Sam Bush Pig

And So On...............



On your Main User Sheet:


A B C
D
1 Location Address Phone
Contact
Dropdown B2
=IF($A1="","",(LOOKUP($A1,MyLookUps!$A$2:$D$63635, MyLookUps!$B$2:$B$63635)))
lists C2
=IF($A1="","",(LOOKUP($A1,MyLookUps!$A$2:$D$63635, MyLookUps!$C$2:$C$63635)))

D2
=IF($A1="","",(LOOKUP($A1,MyLookUps!$A$2:$D$63635, MyLookUps!$D$2:$D$63635)))

Copy down as required

HTH
Mark.





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
Creating drop downs in a cell contingent on another drop down Keeprogoal[_2_] Excel Discussion (Misc queries) 1 March 24th 09 04:37 PM
Drop downs How do add Drop down list Excel Discussion (Misc queries) 2 December 19th 08 03:45 PM
drop downs Mick Excel Discussion (Misc queries) 2 May 11th 08 05:16 PM
Cross-referenced drop-down menu (nested drop-downs?) creativeops Excel Worksheet Functions 4 November 22nd 05 05:41 PM
Macros? drop downs? David French Excel Worksheet Functions 2 September 27th 05 07:42 PM


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