Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default How do I insert a preformated paragraph into a comment?

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default How do I insert a preformated paragraph into a comment?

"Text1" & variableText & vbcrlf & ......

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

--
steveB

Remove "AYN" from email to respond
"Mark" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert a hyperlink in text in a paragraph duketter Excel Discussion (Misc queries) 4 May 13th 23 11:41 AM
insert a paragraph break within text in a singel cell? Julie Excel Discussion (Misc queries) 4 April 5th 23 02:44 PM
Search for lowercase followed by uppercase and insert paragraph jgwors Excel Discussion (Misc queries) 0 December 2nd 09 09:18 PM
How to insert from name range into a paragraph? misterno Excel Worksheet Functions 2 March 9th 07 03:52 PM
How do I insert a comment when the Insert:Comment menu is greyed? none Excel Discussion (Misc queries) 0 May 19th 05 12:36 AM


All times are GMT +1. The time now is 11:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"