How to insert paragraph (\par RTF tag) using VBA 
Author Message
 How to insert paragraph (\par RTF tag) using VBA

Hi,

Chr$(11) inserts a \line tag when the document is saved as RTF. Is there a
way to insert \par tag using VBA. I have tried Chr$(12), but that is
inserting a \page RTF tag. I have also tried Chr$(13) which is not inserting
any RTF tag, but visually it appears that there is a newline.

What I am trying is to write "Hello World" into a formfield, but would like
to separate these two words by a paragraph.

Any help is much appreciated.

Thanks, Raju



Mon, 28 Feb 2005 04:49:14 GMT  
 How to insert paragraph (\par RTF tag) using VBA
Hi Raju,

Apparently vbCrLf works.

HTH


Quote:
> Hi,

> Chr$(11) inserts a \line tag when the document is saved as RTF. Is there a
> way to insert \par tag using VBA. I have tried Chr$(12), but that is
> inserting a \page RTF tag. I have also tried Chr$(13) which is not
inserting
> any RTF tag, but visually it appears that there is a newline.

> What I am trying is to write "Hello World" into a formfield, but would
like
> to separate these two words by a paragraph.

> Any help is much appreciated.

> Thanks, Raju



Mon, 28 Feb 2005 05:00:10 GMT  
 How to insert paragraph (\par RTF tag) using VBA
Thank you very much. Actually vbCr worked just fine. It puts the "\par" RTF
tag for paragraph. Thanks for your help once again.


Quote:
> Hi Raju,

> Apparently vbCrLf works.

> HTH



> > Hi,

> > Chr$(11) inserts a \line tag when the document is saved as RTF. Is there
a
> > way to insert \par tag using VBA. I have tried Chr$(12), but that is
> > inserting a \page RTF tag. I have also tried Chr$(13) which is not
> inserting
> > any RTF tag, but visually it appears that there is a newline.

> > What I am trying is to write "Hello World" into a formfield, but would
> like
> > to separate these two words by a paragraph.

> > Any help is much appreciated.

> > Thanks, Raju



Tue, 01 Mar 2005 08:57:30 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. inserting a number tag in a particular paragraph

2. Using RTF Format Tags in RichTextBox

3. Inserting paragraph in the table using VB

4. Remove paragraph insertions using VBA?

5. RTF - inserting text - difficulties with RTF code stripped by Outlook

6. Extract paragraph as RTF

7. How to convert word paragraph or range into RTF format

8. RTF paragraph property

9. Using VBA to send RTF enabled mail items.

10. Adding .RTF .WRI .DOC files to VB programs with those files tagging along

11. RTF tag interpretation

12. invisible tag for RTF?

 

 
Powered by phpBB® Forum Software