How do you copy raw Microsoft Word fields codes to another text document?
up vote
0
down vote
favorite
Is it possible to copy text from a Word document containing field codes, so that when asted into another application, the FIELD CODES REMAIN AS RAW TEXT. i.e. something like
This is about whales { XE "Cetations:Whales" }. This is about dolphins { XE "Cetations:Dolphins" }.
rather than have the field codes stripped out?
microsoft-word microsoft-office-2007 microsoft-word-2007 copy-paste field-codes
add a comment |
up vote
0
down vote
favorite
Is it possible to copy text from a Word document containing field codes, so that when asted into another application, the FIELD CODES REMAIN AS RAW TEXT. i.e. something like
This is about whales { XE "Cetations:Whales" }. This is about dolphins { XE "Cetations:Dolphins" }.
rather than have the field codes stripped out?
microsoft-word microsoft-office-2007 microsoft-word-2007 copy-paste field-codes
Perhaps I havn't explained it very clearly. I don't want to cut and paste individual field codes one at a time, but rather the body text of entire document with the field codes kept intact...
– Faye Dyce
Apr 27 '10 at 15:26
you've managed to create two accounts. E-mail team@superuser.com to get them merged.
– ChrisF
Apr 27 '10 at 15:27
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is it possible to copy text from a Word document containing field codes, so that when asted into another application, the FIELD CODES REMAIN AS RAW TEXT. i.e. something like
This is about whales { XE "Cetations:Whales" }. This is about dolphins { XE "Cetations:Dolphins" }.
rather than have the field codes stripped out?
microsoft-word microsoft-office-2007 microsoft-word-2007 copy-paste field-codes
Is it possible to copy text from a Word document containing field codes, so that when asted into another application, the FIELD CODES REMAIN AS RAW TEXT. i.e. something like
This is about whales { XE "Cetations:Whales" }. This is about dolphins { XE "Cetations:Dolphins" }.
rather than have the field codes stripped out?
microsoft-word microsoft-office-2007 microsoft-word-2007 copy-paste field-codes
microsoft-word microsoft-office-2007 microsoft-word-2007 copy-paste field-codes
edited Apr 26 '10 at 0:50
studiohack♦
11.3k1880113
11.3k1880113
asked Apr 25 '10 at 9:35
Faye Dyce
111
111
Perhaps I havn't explained it very clearly. I don't want to cut and paste individual field codes one at a time, but rather the body text of entire document with the field codes kept intact...
– Faye Dyce
Apr 27 '10 at 15:26
you've managed to create two accounts. E-mail team@superuser.com to get them merged.
– ChrisF
Apr 27 '10 at 15:27
add a comment |
Perhaps I havn't explained it very clearly. I don't want to cut and paste individual field codes one at a time, but rather the body text of entire document with the field codes kept intact...
– Faye Dyce
Apr 27 '10 at 15:26
you've managed to create two accounts. E-mail team@superuser.com to get them merged.
– ChrisF
Apr 27 '10 at 15:27
Perhaps I havn't explained it very clearly. I don't want to cut and paste individual field codes one at a time, but rather the body text of entire document with the field codes kept intact...
– Faye Dyce
Apr 27 '10 at 15:26
Perhaps I havn't explained it very clearly. I don't want to cut and paste individual field codes one at a time, but rather the body text of entire document with the field codes kept intact...
– Faye Dyce
Apr 27 '10 at 15:26
you've managed to create two accounts. E-mail team@superuser.com to get them merged.
– ChrisF
Apr 27 '10 at 15:27
you've managed to create two accounts. E-mail team@superuser.com to get them merged.
– ChrisF
Apr 27 '10 at 15:27
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
Add macro to document, select text, run macro, You can now copy fields codes to clipboard.
Ps. in office 2010 ALT+F9 is used to display fields codes.
Sub StuffFieldCode()
Dim sField As String
Dim sTextCode As String
Dim bSFC As Boolean
Dim MyData As DataObject
Dim sTemp As String
Dim J As Integer
Application.ScreenUpdating = False
If Selection.Fields.Count = 1 Then
bSFC = Selection.Fields.Item(1).ShowCodes
Selection.Fields.Item(1).ShowCodes = True
sField = Selection.Text
sTextCode = ""
For J = 1 To Len(sField)
sTemp = Mid(sField, J, 1)
Select Case sTemp
Case Chr(19)
sTemp = "{"
Case Chr(21)
sTemp = "}"
Case vbCr
sTemp = ""
End Select
sTextCode = sTextCode & sTemp
Next J
Set MyData = New DataObject
MyData.SetText sTextCode
MyData.PutInClipboard
Selection.Fields.Item(1).ShowCodes = bSFC
End If
Application.ScreenUpdating = True
End Sub
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
add a comment |
up vote
0
down vote
Press Alt+F9 to show the field code, then highlight all the text inside the braces {}. You can they copy and paste this text.
Here's a link to a macro someone wrote to do all the work: Copy and Pasting Field Codes
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Add macro to document, select text, run macro, You can now copy fields codes to clipboard.
Ps. in office 2010 ALT+F9 is used to display fields codes.
Sub StuffFieldCode()
Dim sField As String
Dim sTextCode As String
Dim bSFC As Boolean
Dim MyData As DataObject
Dim sTemp As String
Dim J As Integer
Application.ScreenUpdating = False
If Selection.Fields.Count = 1 Then
bSFC = Selection.Fields.Item(1).ShowCodes
Selection.Fields.Item(1).ShowCodes = True
sField = Selection.Text
sTextCode = ""
For J = 1 To Len(sField)
sTemp = Mid(sField, J, 1)
Select Case sTemp
Case Chr(19)
sTemp = "{"
Case Chr(21)
sTemp = "}"
Case vbCr
sTemp = ""
End Select
sTextCode = sTextCode & sTemp
Next J
Set MyData = New DataObject
MyData.SetText sTextCode
MyData.PutInClipboard
Selection.Fields.Item(1).ShowCodes = bSFC
End If
Application.ScreenUpdating = True
End Sub
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
add a comment |
up vote
0
down vote
Add macro to document, select text, run macro, You can now copy fields codes to clipboard.
Ps. in office 2010 ALT+F9 is used to display fields codes.
Sub StuffFieldCode()
Dim sField As String
Dim sTextCode As String
Dim bSFC As Boolean
Dim MyData As DataObject
Dim sTemp As String
Dim J As Integer
Application.ScreenUpdating = False
If Selection.Fields.Count = 1 Then
bSFC = Selection.Fields.Item(1).ShowCodes
Selection.Fields.Item(1).ShowCodes = True
sField = Selection.Text
sTextCode = ""
For J = 1 To Len(sField)
sTemp = Mid(sField, J, 1)
Select Case sTemp
Case Chr(19)
sTemp = "{"
Case Chr(21)
sTemp = "}"
Case vbCr
sTemp = ""
End Select
sTextCode = sTextCode & sTemp
Next J
Set MyData = New DataObject
MyData.SetText sTextCode
MyData.PutInClipboard
Selection.Fields.Item(1).ShowCodes = bSFC
End If
Application.ScreenUpdating = True
End Sub
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
add a comment |
up vote
0
down vote
up vote
0
down vote
Add macro to document, select text, run macro, You can now copy fields codes to clipboard.
Ps. in office 2010 ALT+F9 is used to display fields codes.
Sub StuffFieldCode()
Dim sField As String
Dim sTextCode As String
Dim bSFC As Boolean
Dim MyData As DataObject
Dim sTemp As String
Dim J As Integer
Application.ScreenUpdating = False
If Selection.Fields.Count = 1 Then
bSFC = Selection.Fields.Item(1).ShowCodes
Selection.Fields.Item(1).ShowCodes = True
sField = Selection.Text
sTextCode = ""
For J = 1 To Len(sField)
sTemp = Mid(sField, J, 1)
Select Case sTemp
Case Chr(19)
sTemp = "{"
Case Chr(21)
sTemp = "}"
Case vbCr
sTemp = ""
End Select
sTextCode = sTextCode & sTemp
Next J
Set MyData = New DataObject
MyData.SetText sTextCode
MyData.PutInClipboard
Selection.Fields.Item(1).ShowCodes = bSFC
End If
Application.ScreenUpdating = True
End Sub
Add macro to document, select text, run macro, You can now copy fields codes to clipboard.
Ps. in office 2010 ALT+F9 is used to display fields codes.
Sub StuffFieldCode()
Dim sField As String
Dim sTextCode As String
Dim bSFC As Boolean
Dim MyData As DataObject
Dim sTemp As String
Dim J As Integer
Application.ScreenUpdating = False
If Selection.Fields.Count = 1 Then
bSFC = Selection.Fields.Item(1).ShowCodes
Selection.Fields.Item(1).ShowCodes = True
sField = Selection.Text
sTextCode = ""
For J = 1 To Len(sField)
sTemp = Mid(sField, J, 1)
Select Case sTemp
Case Chr(19)
sTemp = "{"
Case Chr(21)
sTemp = "}"
Case vbCr
sTemp = ""
End Select
sTextCode = sTextCode & sTemp
Next J
Set MyData = New DataObject
MyData.SetText sTextCode
MyData.PutInClipboard
Selection.Fields.Item(1).ShowCodes = bSFC
End If
Application.ScreenUpdating = True
End Sub
answered Mar 26 '12 at 19:15
integratorIT
671615
671615
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
add a comment |
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
for this code to run you have to add microsoft forms 2.0 reference to macro. It is located c:windowssystem32FM20.dll. Unfortunately even though the code copies the text representing the field code all of the formatting is lost when it is copied. When you paste back it is simply text.
– TWood
Aug 1 '17 at 11:52
add a comment |
up vote
0
down vote
Press Alt+F9 to show the field code, then highlight all the text inside the braces {}. You can they copy and paste this text.
Here's a link to a macro someone wrote to do all the work: Copy and Pasting Field Codes
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
add a comment |
up vote
0
down vote
Press Alt+F9 to show the field code, then highlight all the text inside the braces {}. You can they copy and paste this text.
Here's a link to a macro someone wrote to do all the work: Copy and Pasting Field Codes
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
add a comment |
up vote
0
down vote
up vote
0
down vote
Press Alt+F9 to show the field code, then highlight all the text inside the braces {}. You can they copy and paste this text.
Here's a link to a macro someone wrote to do all the work: Copy and Pasting Field Codes
Press Alt+F9 to show the field code, then highlight all the text inside the braces {}. You can they copy and paste this text.
Here's a link to a macro someone wrote to do all the work: Copy and Pasting Field Codes
edited May 13 '16 at 14:51
MonoThreaded
1228
1228
answered Apr 25 '10 at 23:53
WireGuy
1,46311316
1,46311316
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
add a comment |
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
In office 2010 its ALT+F9 cant check right now its the same in previous versions.
– integratorIT
Mar 26 '12 at 19:15
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f134507%2fhow-do-you-copy-raw-microsoft-word-fields-codes-to-another-text-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Perhaps I havn't explained it very clearly. I don't want to cut and paste individual field codes one at a time, but rather the body text of entire document with the field codes kept intact...
– Faye Dyce
Apr 27 '10 at 15:26
you've managed to create two accounts. E-mail team@superuser.com to get them merged.
– ChrisF
Apr 27 '10 at 15:27