I have a button which launches a macro in OpenOffice. Within the macro, I want to change the name of the button. The original code for Excel is
ActiveSheet.Shapes('PunchButton').select Selection.Characters.Text = 'Punch In'
but the first line does nothing. I’ve checked the sheet in OpenOffice and the button has the right name. How do I get to it?
There’s a snippet of code here that shows how to change the label and state of all buttons but the one you desire.
I would modify this to iterate over all the buttons but change the internal if-statement to ‘=’ instead of ‘<>’ (and remove the disabling if that’s not needed).