Selecting Item from a Dropdown - Code Needed

RhyGuy

Board Regular
Joined
Jan 12, 2009
Messages
79
Good Day All,

I am currently writing a macro to copy and paste data from one workbook to another. The copied data is always from the same sheet, with exactly the same format. But the data in that sheet changes depending on the variable I select from a dropdown list that resides on a separate sheet. The challenge I am having, is when selecting the dropdown list, the macro does not know I am doing that and will not update the worksheet based upon the selection I made in the dropdown list.

For example, in the dropdown list I have Moncton, Montreal and Toronto. The active item in the dropdown list is Moncton, but when I record the macro to select the list and change it to Toronto, this does not happen and the worksheet with the data still refers to Moncton data. When I review the code, all it appears to be doing is selecting that cell, but no activity is being created for the dropdown function (Range("F6").Select). Is there a way to modify the code for it to actually access the dropdown and select the item I want?

Thanks in Advance

Rhy
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Maybe I don't quite understand the question, but if you put code in the Change activity, doesn't that work?

Brgds
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top