gaw
06-12-2001, 02:57 PM
Hi,
I used VBA to create a command button with a statement like:
ActiveWindow.Selection.SlideRange.Shapes.AddOLEObject(Left:=66#, Top:=486#, Width:=108#, Height:=24#, ClassName:="Forms.CommandButton.1", Link:=msoFalse).Select
By default, the caption is alway "CommandButton1". I wanted its caption changed like "Search". It is easy to do it manually, but I have been spent the whole afternoon trying to have it done by another few lines of VBA statement. Please help.... Thank you very much.
Gang
I used VBA to create a command button with a statement like:
ActiveWindow.Selection.SlideRange.Shapes.AddOLEObject(Left:=66#, Top:=486#, Width:=108#, Height:=24#, ClassName:="Forms.CommandButton.1", Link:=msoFalse).Select
By default, the caption is alway "CommandButton1". I wanted its caption changed like "Search". It is easy to do it manually, but I have been spent the whole afternoon trying to have it done by another few lines of VBA statement. Please help.... Thank you very much.
Gang