Automation help with VBA

ChadCnnnghm

New Member
Joined
Jun 25, 2014
Messages
3
So I have a selection change that checks the string in a data validation drop down box and changes a tables values. My first issue is that it only changes after I select my value of the drop down then click the cell again. How can I make it so it changes the table when i just select the drop down value.

Next I have a number of macros that calculate prices in the table. How do I get these to automatically run when the drop down is changed.

Thanks in advance.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Use Change instead of SelectionChange.

Call the other macros from the Change event.
 
Upvote 0
Thanks! Worked like a charm and loads simpler then other methods I have seen online.

Just for clarification, what is the difference between change and select change?
 
Upvote 0
It's kind of in the name, SelectionChange is triggered when the selection on the sheet changes and Change is triggered when a change is made on the sheet.
 
Upvote 0
Okay, I thought so, just wanted to make sure, as my I chose to use SelectionChange based on somone's suggestion.
 
Upvote 0

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,559
Latest member
MrPJ_Harper

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