Hi,
I have an event procedure that is triggered when any data in the sheet is changed, part of this event should unhide (make visible) a command button to re-calculate other information in the workbook.
I am having trouble hiding and unhiding the command button. I have used the Control toolbox to place my command button on the sheet of interest but I cannot make the button visible (I want it invisible initially). I have set the visible property of the button to be false but when the workbook is opened and the sheet activated the button is always visible. I tried via my code in the event procedure to make the button invisible(opposite to what I want but as it is always visible I thought I could test it by making it invisible) but that does not work either, I used the line
Calculate.visible=False
but this just causes an error (I named my button "Calculate"). I also tried Calculate.Hide but that produces the same error which is "Object required"
I noticed another post that suggested the controls from the control box can be problematic and to use the controls via the Forms toolbar but if I use those I cannot get to the properties of the button at all. I thought about using a userform but I want the user to be able to work with the data on the sheet and once finished to push the command button to re-calculate, the idea is that if no changes are made the button is not visible, but once a change is made the button becomes visible to remind the user he must recalculate. For specific reason I do not wwant the calculations to occur until all changes are made.
I am using Excel 2000 under Windows XP.
Thanks
George
I have an event procedure that is triggered when any data in the sheet is changed, part of this event should unhide (make visible) a command button to re-calculate other information in the workbook.
I am having trouble hiding and unhiding the command button. I have used the Control toolbox to place my command button on the sheet of interest but I cannot make the button visible (I want it invisible initially). I have set the visible property of the button to be false but when the workbook is opened and the sheet activated the button is always visible. I tried via my code in the event procedure to make the button invisible(opposite to what I want but as it is always visible I thought I could test it by making it invisible) but that does not work either, I used the line
Calculate.visible=False
but this just causes an error (I named my button "Calculate"). I also tried Calculate.Hide but that produces the same error which is "Object required"
I noticed another post that suggested the controls from the control box can be problematic and to use the controls via the Forms toolbar but if I use those I cannot get to the properties of the button at all. I thought about using a userform but I want the user to be able to work with the data on the sheet and once finished to push the command button to re-calculate, the idea is that if no changes are made the button is not visible, but once a change is made the button becomes visible to remind the user he must recalculate. For specific reason I do not wwant the calculations to occur until all changes are made.
I am using Excel 2000 under Windows XP.
Thanks
George