How do I insert a preformated paragraph into a comment?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to insert a standardized paragraph into a comment.
The text would be something like:
"Work: (actions)
Part: (materials)
Data: (information used in calculations)"

Consider the following code:
If ct Is Nothing Then
ActiveCell.AddComment
Set ct = ActiveCell.Comment
'text
ct.Text "Work: (actions){enter}Part: (materials){enter}Data:
(information used in calculations)"
End If

Obviously {enter} is not working to add the carriage return that I am
looking for.

Thanks!
Mark
 
"Text1" & variableText & vbcrlf & ......

"Text1" & variableText & chr(10) & ......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top