Hi Everyone,
I am a fairly new VBA programmer and am having an issue where a control is no longer a control. I'm trying to figure out why it no longer is a control.
I have a worksheet with checkboxes on it from the control toolbar. I have code that runs when the user clicks the checkbox. Sometimes when the spreadsheet comes back to me from a client or associate, the checkbox is no longer a control - i.e. when I click on it, the code does not run. When I hover over it, it appears to be a picture or shape. Excel will surrond the checbox with a rectangle with the circles - as if I could drag it out to make the shape bigger.
Thanks to this forum, I have figured out how to remove the shape and add the checkboxes back into the worksheet in my VBA code. When I do that, I rename the boxes and the code once again works. My concern is why am I losing the control?
I also have another worksheet where the control is a listbox - again from the Control Toolbox. The same thing will sometimes happen with that.
In one case, I copied the information from one spreadsheet to my 'empty' spreadsheet and sent it back. That time the new spreadsheet worked fine on my associates computer.
Thanks
I am a fairly new VBA programmer and am having an issue where a control is no longer a control. I'm trying to figure out why it no longer is a control.
I have a worksheet with checkboxes on it from the control toolbar. I have code that runs when the user clicks the checkbox. Sometimes when the spreadsheet comes back to me from a client or associate, the checkbox is no longer a control - i.e. when I click on it, the code does not run. When I hover over it, it appears to be a picture or shape. Excel will surrond the checbox with a rectangle with the circles - as if I could drag it out to make the shape bigger.
Thanks to this forum, I have figured out how to remove the shape and add the checkboxes back into the worksheet in my VBA code. When I do that, I rename the boxes and the code once again works. My concern is why am I losing the control?
I also have another worksheet where the control is a listbox - again from the Control Toolbox. The same thing will sometimes happen with that.
In one case, I copied the information from one spreadsheet to my 'empty' spreadsheet and sent it back. That time the new spreadsheet worked fine on my associates computer.
Thanks