Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Jan Jan is offline
external usenet poster
 
Posts: 75
Default Macro not holding - 2003 SBE

The macro I have attempted to create is Edit/Paste Special/Unformatted Text.

Problem is.. that even though I have gone through the assign keyboard
CRTL+., recorded the macro (run macro Edit/PasteSpecial/Unformatted Text -
stop recording), when I go to use the command CRTL+. the font formatting is
being pasted into the document rather than the "unformatted text."

Can anyone tell me what I might be doing wrong?

Thanks for the help!!

Jan
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Macro not holding - 2003 SBE

This is not something you can record - use the following instead:

Sub PasteUnfText()
On Error GoTo oops
Selection.PasteSpecial _
DataType:=wdPasteText, _
Placement:=wdInLine
End
oops:
Beep
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Jan wrote:
The macro I have attempted to create is Edit/Paste
Special/Unformatted Text.

Problem is.. that even though I have gone through the assign keyboard
CRTL+., recorded the macro (run macro Edit/PasteSpecial/Unformatted
Text - stop recording), when I go to use the command CRTL+. the font
formatting is being pasted into the document rather than the
"unformatted text."

Can anyone tell me what I might be doing wrong?

Thanks for the help!!

Jan



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jan Jan is offline
external usenet poster
 
Posts: 75
Default Macro not holding - 2003 SBE

Thanks for the info, but I'm not having any luck. I went to your site so I
would insert correctly, but must be missing something.

From Word, ALT+F8.
Macro box appears.
Macro Name (PasteUnfText)
Create (and the following appears)

Sub PasteUnfText()
'
' PasteUnfText Macro
' Macro created March 11, 2008 by Jan Gavin
'

End Sub

I highlighted the above and pasted the commands in your reply leaving me
with the following in the macro create box

Sub PasteUnfText()
On Error GoTo oops
Selection.PasteSpecial _
DataType:=wdPasteText, _
Placement:=wdInLine
End
oops:
Beep
End Sub

Save and return to Word

When perform a copy and then attempt to paste unformatted text using CRTL+.
nothing happens.

Thanks again for your help!

Jan








"Graham Mayor" wrote:

This is not something you can record - use the following instead:

Sub PasteUnfText()
On Error GoTo oops
Selection.PasteSpecial _
DataType:=wdPasteText, _
Placement:=wdInLine
End
oops:
Beep
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Jan wrote:
The macro I have attempted to create is Edit/Paste
Special/Unformatted Text.

Problem is.. that even though I have gone through the assign keyboard
CRTL+., recorded the macro (run macro Edit/PasteSpecial/Unformatted
Text - stop recording), when I go to use the command CRTL+. the font
formatting is being pasted into the document rather than the
"unformatted text."

Can anyone tell me what I might be doing wrong?

Thanks for the help!!

Jan




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Styles not holding Lefty Microsoft Word Help 1 November 2nd 06 11:04 PM
format as you type is not holding kim Microsoft Word Help 4 July 27th 06 02:52 PM
Ruler Settings Not Holding [email protected] Page Layout 1 June 12th 06 06:24 PM
holding shiftkey down for 8 seconds oj Microsoft Word Help 1 October 31st 05 12:01 AM
Margins not holding as set. FMWARLICK Page Layout 6 September 4th 05 02:21 AM


All times are GMT +1. The time now is 07:17 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"