![]() |
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. |
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. |
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 |
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. |
All times are GMT +1. The time now is 12:39 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com