Combobox Losing Input Range

gsbelbin

Active Member
Joined
Aug 29, 2008
Messages
336
Hi
I have a combobox on a chart which is linked to a cell on a worksheet. Changing the value in the combo updates the cell and then runs a procedure which updates the chart data. The Input Range for the combo is a dynamic named range and everything works exactly as planned. However when I save and close the workbook the combo loses the Input Range. I've tried it with a fixed named range and it does the same thing. The only way it will remember the Input Range is when it is set to a range of cell address eg CampaignData!$A$2:$A$6.

Any ideas?

Cheers

Gordon
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
To get around this "feature" I can probably populate the Input Range each time the file is opened. What I don't know is how can I refer to the combobox in my VBA code. I've given it a name on the chart sheet but whichever way I try to update its RowSource property it comes back with "Object required".

Cheers

Gordon
 
Upvote 0
Sorted!

I put this in an auto_open() procedure

Code:
Charts("Results Chart").DropDowns(1).ListFillRange = "Campaigns"
where Campaigns is the dynamic named range
 
Upvote 0
Hi Gordon,

I am running into this issue as well. I found a way around this without VBA by creating the combo box in a worksheet first, then copying it to the chart. This causes Excel to prefix the name of the dynamic range with the workbook name, and it will now "remember" the input range when file is reopened.

- Mike
 
Upvote 0
Hi Mike
Thanks, I'll try that as well. I've had other problems with this that I've had to work around. I also have radio buttons and check boxes on the chart and they kept losing their connections to macros when I closed the file. Not every time, it just seems to happen at random!! So I've also had to assign the macros in the auto_open. Challenging but it works now.

Gordon
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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