Re: Macro for Paste Special Unformatted Text
- From: Clive Huggan <REMOVETHISoffice@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Dec 2007 09:54:11 +1100
Hi LC,
Because that command will only bring up the Paste Special window, from which
you then have to select the formatting option you want and click OK.
But if you want to avoid macros, at least it does the job half way... ;-)
(I use it so often I couldn't afford to do that.)
Clive
=====
On 24/12/07 6:44 AM, in article
3da44c37-a630-4627-b6f0-8374d44144f8@xxxxxxxxxxxxxxxxxxxxxxxxxxx,
"little_creature" <litttle.creature.inc@xxxxxxxxx> wrote:
Hi,
maybe I have missed something but why do you need macro? why not to
simply assign a shortcut to pasteSpecial command? This works quite OK
for me and the advantage is that I do not unnecessarily put macros to
files, which I would be a bit careful if you share files with other
people.
On Dec 23, 3:27 am, Daiya Mitchell <daiyaNOS...@xxxxxxxxxxxxxxxx>
wrote:
Hi Julie,
Couple issues. If you recorded a Paste Unformatted Macro, it comes out
wrong. The recorder is broken for things involving Paste Special.
The macro you post should be fine, but I'm guessing the line break is in
the wrong place. You see where there is an underscore: _ ? Really the
underscore means "this underscore of _ should not exist and this should
all be one line." So try using the VBA editor to type all that as a
single line, and let it add an underscore if it needs to. In addition,
copying stuff from the web might include a line break that isn't the
same as the line break the VBA editor would use. I'd bet money that is
the problem. Some judicious backspacing should fix it.
Also, you can see here for a functional macro and instructions on fixing
errors.http://word.mvps.org/Mac/PasteText.html
(the one you have might be a little better, but that one has never
failed me)http://word.mvps.org/Mac/InstallMacro.html
The keyboard shortcut issue---the keyboard shortcut is not hard-coded as
part of the macro. You might need to re-assign it to a new macro.
While macros are not included in Word 2008, the AppleScript support is
better. For a home user, substituting AppleScript for Macros might be
just as efficient, once set up.
Daiya
Julie27 wrote:
I'm copying and pasting a lot of emails into one Word document. To
save steps, I created a macro to paste special unformatted text, but
it's not working right. It's pasting but not in unformatted text
form. My macro is:
Sub PasteUnformattedText()
'
' PasteUnformattedText Macro
' Macro recorded 12/22/07 by Baird Julianne
'
Selection.PasteAndFormat (wdPasteDefault)
End Sub
I searched these discussion threads and found this macro for the same
action
Selection.PasteSpecial Link:=False, DataType:=wdPasteText,
Placement:= _
wdInLine, DisplayAsIcon:=False
I copy and pasted those lines over my Macro commands but received an
error message.
Why isn't this working? I will admit I'm not very swift at creating
Macros.
Julie
.
- Follow-Ups:
- Re: Macro for Paste Special Unformatted Text
- From: Julie27
- Re: Macro for Paste Special Unformatted Text
- References:
- Macro for Paste Special Unformatted Text
- From: Julie27
- Re: Macro for Paste Special Unformatted Text
- From: Daiya Mitchell
- Re: Macro for Paste Special Unformatted Text
- From: little_creature
- Macro for Paste Special Unformatted Text
- Prev by Date: Re: Cannot install XML Compatibility Pack
- Next by Date: Re: Color fill in Word 2004
- Previous by thread: Re: Macro for Paste Special Unformatted Text
- Next by thread: Re: Macro for Paste Special Unformatted Text
- Index(es):
Relevant Pages
|