Try this
Option Explicit
Sub Macro_Insert()
Dim cl As Range
Set cl = Cells(5, ActiveCell.Column)
cl = cl & MyInputBox
With cl.Characters(Start:=1, Length:=19).Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
With cl.Characters(Start:=20, Length:=5).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
End Sub
Function MyInputBox() As String
While MyInputBox = "Enter your input text HERE" Or MyInputBox = ""
MyInputBox = InputBox("This is my InputBox", "MyInputTitle", "Enter your input text HERE")
Wend
End Function
Bookmarks