Hello irf90,
Welcome to the Forum!
Here is a macro to change some the properties of the Text Box. There are more. To see them you need to view them in the Object Browser for the VB Editor.
Sub Macro1()
Dim Msg As String
Dim TB As Object
On Error GoTo ErrHandler
Set TB = ActiveSheet.TextBoxes(ActiveSheet.TextBoxes.Count)
With TB
.Interior.Color = RGB(255, 255, 0)
.Font.Name = "Arial"
.Font.Size = 8
.Font.Bold = True
.Font.Color = RGB(0, 0, 255)
.Text = .Name
.AutoSize = False
End With
ErrHandler:
If Err <> 0 Then
Select Case Err.Number
Case 0: Exit Sub
Case 1004: Msg = "There are No Text Boxes on this Sheet."
End Select
If Msg <> "" Then MsgBox Msg, vbExclamation
End If
End Sub
Bookmarks