When I create a command button I can do all of the below except set
the FontStyle. What is the correct syntax for this?
With objActiveWkb.ActiveSheet.OLEObjects.Add("Forms.CommandButton.
1")
.Left = intLeft
.Top = intTop
.Object.Caption = strButtonCaption
.Width = intWidth
.Height = intHeight
.Object.Wordwrap = True
.Object.Font.Size = 10
' .FontStyle = "Bold"
End With
Dave Peterson - 03 Jan 2008 00:25 GMT
How about just
.object.fontbold = true
I don't think there's a .fontstyle associated with this. I didn't see it when I
added an oleobject to the watch window.
> When I create a command button I can do all of the below except set
> the FontStyle. What is the correct syntax for this?
[quoted text clipped - 11 lines]
>
> End With

Signature
Dave Peterson