I am using a macro to add an OLEOBJECT form.commandbutton.
I have added a few, but can't figure out how to remove them.
Does anyone know how to cycle throughout all of them in a sheet, and delete them all?
Does anyone know a good reference for this?
Here is the code used to add them:
Set Btn = ActiveSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", Link:=False _
, DisplayAsIcon:=False, left:=d_left, top:=d_top, width:=d_width, height:= _
d_height)
I have added a few, but can't figure out how to remove them.
Does anyone know how to cycle throughout all of them in a sheet, and delete them all?
Does anyone know a good reference for this?
Here is the code used to add them:
Set Btn = ActiveSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", Link:=False _
, DisplayAsIcon:=False, left:=d_left, top:=d_top, width:=d_width, height:= _
d_height)