M
Molly
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
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