This code works great but I need the text to be formatted when I paste it. Any ideas?
Private Sub CopyButton_Click()
Dim myRanges As Range
Dim newsection As String
Set myRanges = ActiveDocument.Bookmarks("Interview").Range
newsection = myRanges.FormattedText
With ActiveDocument
If .ProtectionType <> wdNoProtection Then
Unprotect Password:=""
End If
If ActiveDocument.Bookmarks.Exists("NewPage") Then
Set myRanges = ActiveDocument.Bookmarks("NewPage").Range
myRanges = newsection '.FormattedText
ActiveDocument.Bookmarks.Add "NewPage", myRanges
End If
Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True, Password:=""
End With
End Sub
Private Sub CopyButton_Click()
Dim myRanges As Range
Dim newsection As String
Set myRanges = ActiveDocument.Bookmarks("Interview").Range
newsection = myRanges.FormattedText
With ActiveDocument
If .ProtectionType <> wdNoProtection Then
Unprotect Password:=""
End If
If ActiveDocument.Bookmarks.Exists("NewPage") Then
Set myRanges = ActiveDocument.Bookmarks("NewPage").Range
myRanges = newsection '.FormattedText
ActiveDocument.Bookmarks.Add "NewPage", myRanges
End If
Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True, Password:=""
End With
End Sub