R
Robin Clay
Greetings !
I have some routines in the "WorkbookOpen" routine
of various workbooks that create ToolBar buttons.
Generally, I have managed to get the relevant buttons
deleted when the workbook is closed, but what I haven't
yet
managed is to prevent new duplicate buttons being created.
Would SKS be so kind as to give me the relevant code ?
e.g.
Public Sub MakeButtons()
' Make "Print" button
If Exists Button(Print) Then ' <--- It's this line I
need help with !
Else
'Existing Make "Print" button routine goes here
End If
' Repeat for the other buttons
End Sub
RClay AT haswell DOT com
I have some routines in the "WorkbookOpen" routine
of various workbooks that create ToolBar buttons.
Generally, I have managed to get the relevant buttons
deleted when the workbook is closed, but what I haven't
yet
managed is to prevent new duplicate buttons being created.
Would SKS be so kind as to give me the relevant code ?
e.g.
Public Sub MakeButtons()
' Make "Print" button
If Exists Button(Print) Then ' <--- It's this line I
need help with !
Else
'Existing Make "Print" button routine goes here
End If
' Repeat for the other buttons
End Sub
RClay AT haswell DOT com