I currently have code to create a button that goes into A1 and I would like to change the color and font of the button. How can I add to my existing code to do so?
My Current Code:
Thanks for any help in advance!
My Current Code:
VBA Code:
Sub CreateButton()
Dim btn As Button
Dim t As Range
Application.ScreenUpdating = False
ActiveSheet.Buttons.Delete
Set t = ActiveSheet.Range(Cells(1, 1), Cells(1, 1))
Set btn = ActiveSheet.Buttons.Add(t.Left, t.Top, t.Width, t.Height)
With btn
.OnAction = "Button" 'Runs Macro Button
.Caption = "Run Macros"
.Name = "Button"
Application.ScreenUpdating = True
End Sub
Thanks for any help in advance!