I has been following this posting from the beginning.
I still do not understand why you need to stop the script. Do something then start the script again.
Here is a simple little script which will activate when you enter any value in column A
A Comment will be added to the cell with the value you entered in column A
And the script formats the comment
Now this script can be modified to format comment exactly like you want.
But wanting to stop a script enter a comment format the comment then start the script again can require a lot of scripting.
Try this and see how it works.
This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
'Modified 12/17/2018 2:44:06 AM EST
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub
Dim cmt As Comment
Set cmt = Target.Comment
If cmt Is Nothing Then
Target.AddComment Text:=Target.Value
Target.Comment.Shape.TextFrame.Characters.Font.Size = 16
Target.Comment.Shape.TextFrame.AutoSize = True
Target.Comment.Shape.Fill.ForeColor.SchemeColor = 3
End If
End If
End Sub