A
Adam at Star Packaging
I have the following macro set, but I would like to make the text portion of
it uneditable. Is there a code to place in the macro for this?
(Protect document will not work for us in this case)
Sub CommentAddPic()
'adds formatted comment with picture
Dim cmt As Comment
Set cmt = ActiveCell.Comment
If cmt Is Nothing Then
ActiveCell.AddComment Text:="On" & Now()
Set cmt = ActiveCell.Comment
With cmt.Shape.TextFrame.Characters.Font
.Bold = False
.ColorIndex = 0
End With
cmt.Shape.Fill.UserPicture "C:\Documents and Settings\All
Users\Documents\My Pictures\Sample Pictures\sig.jpg"
End If
End Sub
Thanks!
it uneditable. Is there a code to place in the macro for this?
(Protect document will not work for us in this case)
Sub CommentAddPic()
'adds formatted comment with picture
Dim cmt As Comment
Set cmt = ActiveCell.Comment
If cmt Is Nothing Then
ActiveCell.AddComment Text:="On" & Now()
Set cmt = ActiveCell.Comment
With cmt.Shape.TextFrame.Characters.Font
.Bold = False
.ColorIndex = 0
End With
cmt.Shape.Fill.UserPicture "C:\Documents and Settings\All
Users\Documents\My Pictures\Sample Pictures\sig.jpg"
End If
End Sub
Thanks!