Hello,
Need help with below query as I am new to Excel, VBA.
I have created buttons with the help of VBA Code on Add-ins. How can I make the button size larger (change the size)? I have tried methods like height and width but they did not help me.
part of the code:
Sub Auto_Open()
x = x + 1
Set oControl = oBar.Controls.Add(ID:=specifyID, Before:=x)
oControl.OnAction = "Specify Action"
oControl.FaceId = SpecifyFaceID
oControl.Caption = "Specify Caption" '(Not provided any values)
End Sub
oControl is CommandBarControl
I have tried oControl.Height and oControl.Width but it did not help. Thanks
Bookmarks