C
corky_guy
<snip of code>
If CheckBox1.Value = "True" Then
ActiveDocument.Variables("protocol").Value = "router bgp 9999" & vbCr
& "address-family ipv4 vrf " _
& "activate" & vbCr & "no auto-summary" & vbCr & "no synchronization"
& vbCr & "exit-address-family"
Else
ActiveDocument.Variables("test").Value = " "
End If
</end snip of code>
If I copy/paste the result from the checkbox into word, it pastes as
it should:
router bgp 64513
address-family ipv4 vrf
activate
no auto-summary
no synchronization
exit-address-family
If I copy/paste the result from the checkbox into anything else (i.e.,
a text editor), it pasts as plain text and the carriage returns are
removed:
router bgp 64513 address-family ipv4 vrf activate no auto-summary no
synchronization exit-address-family
Is there any way to maintain the carriage returns no matter where I am
pasting the output?
Thanks!
If CheckBox1.Value = "True" Then
ActiveDocument.Variables("protocol").Value = "router bgp 9999" & vbCr
& "address-family ipv4 vrf " _
& "activate" & vbCr & "no auto-summary" & vbCr & "no synchronization"
& vbCr & "exit-address-family"
Else
ActiveDocument.Variables("test").Value = " "
End If
</end snip of code>
If I copy/paste the result from the checkbox into word, it pastes as
it should:
router bgp 64513
address-family ipv4 vrf
activate
no auto-summary
no synchronization
exit-address-family
If I copy/paste the result from the checkbox into anything else (i.e.,
a text editor), it pasts as plain text and the carriage returns are
removed:
router bgp 64513 address-family ipv4 vrf activate no auto-summary no
synchronization exit-address-family
Is there any way to maintain the carriage returns no matter where I am
pasting the output?
Thanks!