Changing <CTRL+V> results to unformatted text
Author |
Message |
rtrs #1 / 7
|
 Changing <CTRL+V> results to unformatted text
For just ONE template in my collection of templates, I'd like to change the "Paste" or <CTRL+V> function so that the "pasted" results are unformatted text. How do I do that? Rick
|
Sun, 15 May 2005 11:50:07 GMT |
|
 |
Jay Freedma #2 / 7
|
 Changing <CTRL+V> results to unformatted text
Hi, Rick, In that one template, insert this macro: Sub EditPaste() Selection.PasteAndFormat (wdFormatPlainText) End Sub That will intercept both the Ctrl+V keystroke and the Edit | Paste menu command. -- Regards, Jay Freedman Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word Quote:
> For just ONE template in my collection of templates, I'd like to > change the "Paste" or <CTRL+V> function so that the "pasted" results > are unformatted text. > How do I do that? > Rick
|
Sun, 15 May 2005 12:35:22 GMT |
|
 |
rtrs #3 / 7
|
 Changing <CTRL+V> results to unformatted text
Jay, Well, I celebrated victory a little too quickly... When I a. create a new document based on this template, b. put some text into the Windows Copy Buffer, c. move the cursor to the desired destination and d. press <CTRL+V>, I get the following error message: ----------------- Compile error: Method or data member not found. ----------------- As error messages go, this one is more cryptic than most. It sure doesn't tell me what to do next. To create the macro, I've entered the following (exactly as I paste it here) at the very end of the macro collection already embedded in this template: -------------- ' ' Macro to Paste Unformatted Text ' Sub EditPaste() Selection.PasteAndFormat (wdFormatPlainText) End Sub -------------- In every respect, this LOOKS and is formatted just like all the other macros in this template. My uneducated eye sees nothing wrong with it. I'm sure I'm doing something silly/stupid/etc. (like not holding my mouth just right) -- but could you tell me what it is I should fix to make this little gem work? Rick
Quote: > Hi, Rick, > In that one template, insert this macro: > Sub EditPaste() > Selection.PasteAndFormat (wdFormatPlainText) > End Sub > That will intercept both the Ctrl+V keystroke and the Edit | Paste menu command. > -- > Regards, > Jay Freedman > Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word
> > For just ONE template in my collection of templates, I'd like to > > change the "Paste" or <CTRL+V> function so that the "pasted" results > > are unformatted text. > > How do I do that? > > Rick
|
Sun, 15 May 2005 22:02:22 GMT |
|
 |
rtrs #4 / 7
|
 Changing <CTRL+V> results to unformatted text
Should I also add that I'm running MSWord2K w/all the updates installed?
Quote: > Jay, > Well, I celebrated victory a little too quickly... > When I > a. create a new document based on this template, > b. put some text into the Windows Copy Buffer, > c. move the cursor to the desired destination and > d. press <CTRL+V>, > I get the following error message: > ----------------- > Compile error: Method or data member not found. > ----------------- > As error messages go, this one is more cryptic than most. It sure doesn't > tell me what to do next. > To create the macro, I've entered the following (exactly as I paste it here) > at the very end of the macro collection already embedded in this template: > -------------- > ' > ' Macro to Paste Unformatted Text > ' > Sub EditPaste() > Selection.PasteAndFormat (wdFormatPlainText) > End Sub > -------------- > In every respect, this LOOKS and is formatted just like all the other macros > in this template. My uneducated eye sees nothing wrong with it. > I'm sure I'm doing something silly/stupid/etc. (like not holding my mouth > just right) -- but could you tell me what it is I should fix to make this > little gem work? > Rick
> > Hi, Rick, > > In that one template, insert this macro: > > Sub EditPaste() > > Selection.PasteAndFormat (wdFormatPlainText) > > End Sub > > That will intercept both the Ctrl+V keystroke and the Edit | Paste menu > command. > > -- > > Regards, > > Jay Freedman > > Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word
> > > For just ONE template in my collection of templates, I'd like to > > > change the "Paste" or <CTRL+V> function so that the "pasted" results > > > are unformatted text. > > > How do I do that? > > > Rick
|
Sun, 15 May 2005 23:00:47 GMT |
|
 |
Jay Freedma #5 / 7
|
 Changing <CTRL+V> results to unformatted text
Rats, I think .PasteAndFormat is a new method in XP. Unfortunately, I won't have access to a Word2K system until Monday. Try putting some text on the clipboard and then recording Edit | Paste Special | Unformatted Text. -- Regards, Jay Freedman Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word Quote:
> Should I also add that I'm running MSWord2K w/all the updates > installed?
>> Jay, >> Well, I celebrated victory a little too quickly... >> When I >> a. create a new document based on this template, >> b. put some text into the Windows Copy Buffer, >> c. move the cursor to the desired destination and >> d. press <CTRL+V>, >> I get the following error message: >> ----------------- >> Compile error: Method or data member not found. >> ----------------- >> As error messages go, this one is more cryptic than most. It sure >> doesn't tell me what to do next. >> To create the macro, I've entered the following (exactly as I paste >> it here) at the very end of the macro collection already embedded in >> this template: >> -------------- >> ' >> ' Macro to Paste Unformatted Text >> ' >> Sub EditPaste() >> Selection.PasteAndFormat (wdFormatPlainText) >> End Sub >> -------------- >> In every respect, this LOOKS and is formatted just like all the >> other macros in this template. My uneducated eye sees nothing wrong >> with it. >> I'm sure I'm doing something silly/stupid/etc. (like not holding my >> mouth just right) -- but could you tell me what it is I should fix >> to make this little gem work? >> Rick
>>> Hi, Rick, >>> In that one template, insert this macro: >>> Sub EditPaste() >>> Selection.PasteAndFormat (wdFormatPlainText) >>> End Sub >>> That will intercept both the Ctrl+V keystroke and the Edit | Paste >>> menu command. >>> -- >>> Regards, >>> Jay Freedman >>> Microsoft Word MVP Word MVP FAQ site: >>> http://www.mvps.org/word
>>>> For just ONE template in my collection of templates, I'd like to >>>> change the "Paste" or <CTRL+V> function so that the "pasted" >>>> results are unformatted text. >>>> How do I do that? >>>> Rick
|
Mon, 16 May 2005 00:38:52 GMT |
|
 |
Jonathan Wes #6 / 7
|
 Changing <CTRL+V> results to unformatted text
Try this instead Sub EditPaste() Selection.PasteSpecial DataType:=wdPasteText End Sub -- Regards Jonathan West - Word MVP MultiLinker - Automated generation of hyperlinks in Word Conversion to PDF & HTML http://www.multilinker.com Word FAQs at http://www.multilinker.com/wordfaq Please post any follow-up in the newsgroup. I do not reply to Word questions by email
Quote: > Should I also add that I'm running MSWord2K w/all the updates installed?
> > Jay, > > Well, I celebrated victory a little too quickly... > > When I > > a. create a new document based on this template, > > b. put some text into the Windows Copy Buffer, > > c. move the cursor to the desired destination and > > d. press <CTRL+V>, > > I get the following error message: > > ----------------- > > Compile error: Method or data member not found. > > ----------------- > > As error messages go, this one is more cryptic than most. It sure doesn't > > tell me what to do next. > > To create the macro, I've entered the following (exactly as I paste it > here) > > at the very end of the macro collection already embedded in this template: > > -------------- > > ' > > ' Macro to Paste Unformatted Text > > ' > > Sub EditPaste() > > Selection.PasteAndFormat (wdFormatPlainText) > > End Sub > > -------------- > > In every respect, this LOOKS and is formatted just like all the other > macros > > in this template. My uneducated eye sees nothing wrong with it. > > I'm sure I'm doing something silly/stupid/etc. (like not holding my mouth > > just right) -- but could you tell me what it is I should fix to make this > > little gem work? > > Rick
> > > Hi, Rick, > > > In that one template, insert this macro: > > > Sub EditPaste() > > > Selection.PasteAndFormat (wdFormatPlainText) > > > End Sub > > > That will intercept both the Ctrl+V keystroke and the Edit | Paste menu > > command. > > > -- > > > Regards, > > > Jay Freedman > > > Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word
> > > > For just ONE template in my collection of templates, I'd like to > > > > change the "Paste" or <CTRL+V> function so that the "pasted" results > > > > are unformatted text. > > > > How do I do that? > > > > Rick
|
Mon, 16 May 2005 00:23:50 GMT |
|
 |
Dave Let #7 / 7
|
 Changing <CTRL+V> results to unformatted text
Hi, I think you're looking for Selection.PasteSpecial DataType:=wdPasteText HTH
Quote: > Rats, I think .PasteAndFormat is a new method in XP. Unfortunately, I won't have > access to a Word2K system until Monday. > Try putting some text on the clipboard and then recording Edit | Paste Special | > Unformatted Text. > -- > Regards, > Jay Freedman > Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word
> > Should I also add that I'm running MSWord2K w/all the updates > > installed?
> >> Jay, > >> Well, I celebrated victory a little too quickly... > >> When I > >> a. create a new document based on this template, > >> b. put some text into the Windows Copy Buffer, > >> c. move the cursor to the desired destination and > >> d. press <CTRL+V>, > >> I get the following error message: > >> ----------------- > >> Compile error: Method or data member not found. > >> ----------------- > >> As error messages go, this one is more cryptic than most. It sure > >> doesn't tell me what to do next. > >> To create the macro, I've entered the following (exactly as I paste > >> it here) at the very end of the macro collection already embedded in > >> this template: > >> -------------- > >> ' > >> ' Macro to Paste Unformatted Text > >> ' > >> Sub EditPaste() > >> Selection.PasteAndFormat (wdFormatPlainText) > >> End Sub > >> -------------- > >> In every respect, this LOOKS and is formatted just like all the > >> other macros in this template. My uneducated eye sees nothing wrong > >> with it. > >> I'm sure I'm doing something silly/stupid/etc. (like not holding my > >> mouth just right) -- but could you tell me what it is I should fix > >> to make this little gem work? > >> Rick
> >>> Hi, Rick, > >>> In that one template, insert this macro: > >>> Sub EditPaste() > >>> Selection.PasteAndFormat (wdFormatPlainText) > >>> End Sub > >>> That will intercept both the Ctrl+V keystroke and the Edit | Paste > >>> menu command. > >>> -- > >>> Regards, > >>> Jay Freedman > >>> Microsoft Word MVP Word MVP FAQ site: > >>> http://www.mvps.org/word
> >>>> For just ONE template in my collection of templates, I'd like to > >>>> change the "Paste" or <CTRL+V> function so that the "pasted" > >>>> results are unformatted text. > >>>> How do I do that? > >>>> Rick
|
Mon, 16 May 2005 01:09:56 GMT |
|
|
|