Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Conversions / March 2004

Tip: Looking for answers? Try searching our database.

Inserting Paragraph via VB code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 05 Mar 2004 13:49 GMT
I have a document into which I insert text using a VB
program.  As a Word 97 document, I insterted the standard
vbCR character to indicate a new paragraph.  We have
upgraded to Word 2000.  The vbCR character now shows up as
a rectangle and no paragraph is inserted.

I understand I could rewrite to use the Word
Selection.TypeParagraph method, but that will take
significant rework.

Does anyone know what character can be inserted via VB
code to insert a paragraph into the text?
Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS - 06 Mar 2004 00:22 GMT
Hi Dave,

ActiveDocument.Range.InsertAfter "This" & vbCr & "That:

will insert

This?
That

in all versions of Word that use VBA.  It must be something else that is
causing your problem.

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

>I have a document into which I insert text using a VB
> program.  As a Word 97 document, I insterted the standard
[quoted text clipped - 8 lines]
> Does anyone know what character can be inserted via VB
> code to insert a paragraph into the text?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.