Invoking a macro from a cell change
On 1 Dec, 19:18, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
Come to think of it I don't think you can get controls from the control
toolbox on a chart sheet. That being said your combo box must be from the
forms toolbar. Right click the control and select Assign Macro... Associate
your macro with it and you should be ready to go...
My recomendation would be to take the guts of the change event code (give or
take a few modifications) and place it in it's own sub procedure. Your change
event will invoke that sub. Additionally your combo box will be associated
with that sub...
--
HTH...
Jim Thomlinson
"Jim Thomlinson" wrote:
Why not initiate the macro from the change event assocated with the Combo Box
instead of the linked cell? The linked cell will not fire in this case, but
the combo box will work. I would post an example for you but I don't know if
your combo box is from the Forms Toolbar or the Control Toolbox...
--
HTH...
Jim Thomlinson
"Planner999" wrote:
Hi
I am trying to run a macro that needs to run whenever the user selects
an entry from a combo box on a chart page. The combo box cell link is
returning the value and I have tried to link to that cell using the
worksheet "Private Sub Worksheet_Change(ByVal Target As Range)".
If the value changes due to the combo box value changing nothing
happens, however if I manually change the value the macro runs.
How do I make this work for me please.....
Thanks in advance
John- Hide quoted text -
- Show quoted text -
Hi Both
I have invoked the macro from the combo box - so simple in the
end.....
Thanks for the time helping me out...
John
|