Updating ComboBox ListFillRange

Carly

Active Member
Joined
Aug 21, 2002
Messages
370
I have a report template which contains a combobox which has a ListFillRange which is a Named Range. The combobox has a OnChange macro which kicks in when the end user selects an option from the combobox.

The problem I have is every month the report changes & I have to refresh the values in the Named Range due to additions or removals. When I copy & paste the new data into the area where the old Named Range is, the OnChange macro kicks in. Is there anyway I can stop this from happening. I have tried to use EnableEvents = False, but this does not work.

Any help would be greatly received.

Kind Regards
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Maybe not the most elegant of solutions.

But since its once in a month, can't you just comment out the block of code, then paste in the new area, uncomment the code, update and move on

And btw, how are you using the Application.EnableEvents property?
 
Upvote 0
Thanks for the response.

Commenting out the code is not an option. This is a monthly report which I need to be completely automated.

I was just putting Application.EnableEvents = False before my copy & paste code but it didn't do anything. Probably using it incorrectly to be honest :)
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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