Oh yah, and I'm actually trying to assign a section of code (small subroutine) to this button - not actually a macro - just to make things more difficult. Sorry
Thank you, but when I use that snippet, I get a "Run-time error '1004': Unable to set the Text property of the Characters class".
Debug stops at: Selection.Characters.Text = "My Text Here"
I am using version 6 of Excel VB.
Also, I was inserting a CommandButton which...
I am adding a commandbutton to a Excel worksheet with the following command:
OutputSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", Link:=False,
DisplayAsIcon:=False, Left:=150, Top:=1330, Width:=200, Height:=50).Select
It adds the button and names it...
I am adding a commandbutton to a Excel worksheet with the following command:
OutputSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", Link:=False,
DisplayAsIcon:=False, Left:=150, Top:=1330, Width:=200, Height:=50).Select
It adds the button and names it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.