Userform, combobox: Repicking the same selection?

vrod2000

New Member
Joined
Oct 28, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have some program-generated combo boxes on a userform. Each combobox contains a unique list.
Clicking a selection in the list runs a macro that populates cell values on the sheet. (Of course, the user can manually overwrite these values.) The macro only runs when a different choice is made.

I would like the ability, that when the user reselects the same dropdown list selection, the macro would run again. (overwriting the cell values with the default values.)
(currently this only works when the user selects a different choice, then reselects the original choice.)

I appreciate any hints or leads.
I was thinking about a combobox_change event, but not sure if this is correct or how to implement this.

thanks.
 

Attachments

  • excelsnippet.png
    excelsnippet.png
    61.3 KB · Views: 7

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi and welcome to MrExcel board.

The macro only runs when a different choice is made.
You could put a Commandbutton and when pressed execute the macro. That way it is not necessary to change the selection that exists in the combo.
 
Upvote 0
I thought of that. It just seems more intuitive to just select the same value again and have it refresh. Makes sense to me.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

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