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 / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Insert Paragraph

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Molly - 04 Nov 2004 13:53 GMT
I I am sure I am being very dim but cannot seem to get
this simple bit of code to work how I want.

My aim is to move to a bookmark, enter the contents of a
vaiable, on the line below insert the conents of a second
variable.

I have tried insertparagraphafter, insertparagraphbefore,
paragraph.add, as well as changing the order of the
variable insertion but it still won't work, it enters the
first line of the address next to the name - I am sure
there is a simple answer to this but Its just not staring
at me - many thanks in advance fo ryour help.

       If LPos = "L1" Then
           ActiveDocument.Bookmarks("L1").Select
       ElseIf LPos = "L2" Then
           ActiveDocument.Bookmarks("L2").Select
       Else
           ActiveDocument.Bookmarks("L3").Select
       End If
   'enter recipient name and address on chosen label
       Selection.Range.Text = LRecipAdd
    Selection.InsertParagraphBefore
       Selection.Range.Text = LRecipName
   Else
   End If
DA - 05 Nov 2004 00:00 GMT
Hi Molly

Try this:
Selection.Range.Text = LRecipAdd + vbCrLf + LRecipName

Hope this helps,
Dennis

>-----Original Message-----
>
[quoted text clipped - 27 lines]
>
>.
 
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.