Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

Unformatted Paste
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Computer Forum Forum Index -> word customization menustoolbars
View previous topic :: View next topic  
Author Message
Chris Boorman
Guest





PostPosted: Fri Nov 30, 2007 4:41 am    Post subject: Re: Unformatted Paste Reply with quote

I finally got it working. Here it is.

Sub UPaste07()
' Pastes the Clipboard` contents as unformatted plain text.
' Replaces the old verson :
' Selection.PasteSpecial DataType:=wdPasteText

On Error GoTo Oops

Dim WordDoc As Word.Document
Dim WordApp As Word.Application

Set WordDoc = ActiveInspector.WordEditor
Set WordApp = WordDoc.Application

WordApp.Selection.PasteSpecial DataType:=wdPasteText,
Placement:=wdInLine

End

Oops:
Beep

End Sub

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%2364V7GvGIHA.5328@TK2MSFTNGP05.phx.gbl...
Quote:
I'm not quite sure what you mean by blocked, but ,,,

Outlook 2007 runs its own instance of an editor using the core of Word. It
has some functionality of its own but it is enhanced if you also have Word
2007 on the same machine. The Word Editor in Outlook runs under the
Inspector you are using at the time, and you gain access to it through ...

Application.ActiveInspector.WordEditor

(or something similar depending on exactly what you are doing). This
actually gives you a Word Document Object from where all the available
parts of the Word OM can be accessed.

--
Enjoy,
Tony

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uwK7thmGIHA.5328@TK2MSFTNGP05.phx.gbl...
It seems like Outlook 2007 is using Word 2007 as its editor (the same
features and dialog boxes are there), but I'm blocked from accessing the
Word object model.

* Is there a way to "unblock" access to the Word object model?
* Is there another object model that I can access?

--------------------------------------------------------------------------

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Omr8RZmGIHA.5160@TK2MSFTNGP05.phx.gbl...
Thanks.

I'd like to have this same functionality in Outlook 2007 (i.e., when
editing an e-mail message, have the Ctrl+d shortdcut produce an
unformatted paste). Can you help me with that too?


Chris Boorman.

--------------------------------------------------------------------------------

"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message
news:OejkQKsFIHA.748@TK2MSFTNGP04.phx.gbl...
The macro

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

works in both Word 2003 and 2007
and the edit > paste special function is already assigned to ALT+CTRL+V

--

Graham Mayor - Word MVP

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


"Chris Boorman" <cjb@microsoft.com> wrote in message
news:eWn5nVoFIHA.4880@TK2MSFTNGP03.phx.gbl...
When I used Word 2003, I created a one-line macro for pasting
unformatted text:
(Selection.PasteSpecial DataType:=wdPasteText),
...and I assigned it the keyboard shortcut "Ctrl+d". For me, this was
truly an indispensible tool.
I now use Word 2007, and unfortunately my macro doesn't work. Word 2007
has a new feature that is supposed to make such a macro
unnecessary. In the Word 2007 Advanced Options page, there are three
options for pasting text.
Keep Source Formatting
Match Destination Formatting
Keep Text Only
I've experimented with these settings, but I've found them to be too
restrictive. So, I now find myself clicking "Past" on the Clipboard tab
on the Home ribbon, and then "Paste Special" and then "Unformatted
Text," which is cumbersome.
Can someone tell me how I can assign the unformatted paste
functionality to keyboard shortcut "Ctrl+d"?

Thanks,
Chris Boorman.






Back to top
Google
Sponsor





PostPosted: Fri Nov 30, 2007 4:41 am    Post subject: Advertisement

Back to top
Chris Boorman
Guest





PostPosted: Fri Nov 30, 2007 6:42 am    Post subject: Re: Unformatted Paste Reply with quote

Now I'd like to assign this macro to Ctrl+d in the Outlook Editor. By
default, Ctrl+d is assigned to the Font dialog. Can anyone tell me how to
override that setting and re-assign Ctrl+d to a macro?


Chris.

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Os%23VatwMIHA.5400@TK2MSFTNGP04.phx.gbl...
Quote:
I finally got it working. Here it is.

Sub UPaste07()
' Pastes the Clipboard` contents as unformatted plain text.
' Replaces the old verson :
' Selection.PasteSpecial DataType:=wdPasteText

On Error GoTo Oops

Dim WordDoc As Word.Document
Dim WordApp As Word.Application

Set WordDoc = ActiveInspector.WordEditor
Set WordApp = WordDoc.Application

WordApp.Selection.PasteSpecial DataType:=wdPasteText,
Placement:=wdInLine

End

Oops:
Beep

End Sub

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%2364V7GvGIHA.5328@TK2MSFTNGP05.phx.gbl...
I'm not quite sure what you mean by blocked, but ,,,

Outlook 2007 runs its own instance of an editor using the core of Word.
It has some functionality of its own but it is enhanced if you also have
Word 2007 on the same machine. The Word Editor in Outlook runs under the
Inspector you are using at the time, and you gain access to it through
...

Application.ActiveInspector.WordEditor

(or something similar depending on exactly what you are doing). This
actually gives you a Word Document Object from where all the available
parts of the Word OM can be accessed.

--
Enjoy,
Tony

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uwK7thmGIHA.5328@TK2MSFTNGP05.phx.gbl...
It seems like Outlook 2007 is using Word 2007 as its editor (the same
features and dialog boxes are there), but I'm blocked from accessing the
Word object model.

* Is there a way to "unblock" access to the Word object model?
* Is there another object model that I can access?

--------------------------------------------------------------------------

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Omr8RZmGIHA.5160@TK2MSFTNGP05.phx.gbl...
Thanks.

I'd like to have this same functionality in Outlook 2007 (i.e., when
editing an e-mail message, have the Ctrl+d shortdcut produce an
unformatted paste). Can you help me with that too?


Chris Boorman.

--------------------------------------------------------------------------------

"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message
news:OejkQKsFIHA.748@TK2MSFTNGP04.phx.gbl...
The macro

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

works in both Word 2003 and 2007
and the edit > paste special function is already assigned to
ALT+CTRL+V

--

Graham Mayor - Word MVP

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


"Chris Boorman" <cjb@microsoft.com> wrote in message
news:eWn5nVoFIHA.4880@TK2MSFTNGP03.phx.gbl...
When I used Word 2003, I created a one-line macro for pasting
unformatted text:
(Selection.PasteSpecial DataType:=wdPasteText),
...and I assigned it the keyboard shortcut "Ctrl+d". For me, this was
truly an indispensible tool.
I now use Word 2007, and unfortunately my macro doesn't work. Word
2007 has a new feature that is supposed to make such a macro
unnecessary. In the Word 2007 Advanced Options page, there are three
options for pasting text.
Keep Source Formatting
Match Destination Formatting
Keep Text Only
I've experimented with these settings, but I've found them to be too
restrictive. So, I now find myself clicking "Past" on the Clipboard
tab
on the Home ribbon, and then "Paste Special" and then "Unformatted
Text," which is cumbersome.
Can someone tell me how I can assign the unformatted paste
functionality to keyboard shortcut "Ctrl+d"?

Thanks,
Chris Boorman.








Back to top
Suzanne S. Barnhill
Guest





PostPosted: Fri Nov 30, 2007 3:27 pm    Post subject: Re: Unformatted Paste Reply with quote

If you assign Ctrl+D to a macro, that setting will override the default one.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:ehm9owxMIHA.2432@TK2MSFTNGP04.phx.gbl...
Quote:
Now I'd like to assign this macro to Ctrl+d in the Outlook Editor. By
default, Ctrl+d is assigned to the Font dialog. Can anyone tell me how to
override that setting and re-assign Ctrl+d to a macro?


Chris.

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Os%23VatwMIHA.5400@TK2MSFTNGP04.phx.gbl...
I finally got it working. Here it is.

Sub UPaste07()
' Pastes the Clipboard` contents as unformatted plain text.
' Replaces the old verson :
' Selection.PasteSpecial DataType:=wdPasteText

On Error GoTo Oops

Dim WordDoc As Word.Document
Dim WordApp As Word.Application

Set WordDoc = ActiveInspector.WordEditor
Set WordApp = WordDoc.Application

WordApp.Selection.PasteSpecial DataType:=wdPasteText,
Placement:=wdInLine

End

Oops:
Beep

End Sub

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%2364V7GvGIHA.5328@TK2MSFTNGP05.phx.gbl...
I'm not quite sure what you mean by blocked, but ,,,

Outlook 2007 runs its own instance of an editor using the core of Word.
It has some functionality of its own but it is enhanced if you also have
Word 2007 on the same machine. The Word Editor in Outlook runs under the
Inspector you are using at the time, and you gain access to it through
...

Application.ActiveInspector.WordEditor

(or something similar depending on exactly what you are doing). This
actually gives you a Word Document Object from where all the available
parts of the Word OM can be accessed.

--
Enjoy,
Tony

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uwK7thmGIHA.5328@TK2MSFTNGP05.phx.gbl...
It seems like Outlook 2007 is using Word 2007 as its editor (the same
features and dialog boxes are there), but I'm blocked from accessing
the Word object model.

* Is there a way to "unblock" access to the Word object model?
* Is there another object model that I can access?

--------------------------------------------------------------------------

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Omr8RZmGIHA.5160@TK2MSFTNGP05.phx.gbl...
Thanks.

I'd like to have this same functionality in Outlook 2007 (i.e., when
editing an e-mail message, have the Ctrl+d shortdcut produce an
unformatted paste). Can you help me with that too?


Chris Boorman.

--------------------------------------------------------------------------------

"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message
news:OejkQKsFIHA.748@TK2MSFTNGP04.phx.gbl...
The macro

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

works in both Word 2003 and 2007
and the edit > paste special function is already assigned to
ALT+CTRL+V

--

Graham Mayor - Word MVP

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


"Chris Boorman" <cjb@microsoft.com> wrote in message
news:eWn5nVoFIHA.4880@TK2MSFTNGP03.phx.gbl...
When I used Word 2003, I created a one-line macro for pasting
unformatted text:
(Selection.PasteSpecial DataType:=wdPasteText),
...and I assigned it the keyboard shortcut "Ctrl+d". For me, this was
truly an indispensible tool.
I now use Word 2007, and unfortunately my macro doesn't work. Word
2007 has a new feature that is supposed to make such a macro
unnecessary. In the Word 2007 Advanced Options page, there are three
options for pasting text.
Keep Source Formatting
Match Destination Formatting
Keep Text Only
I've experimented with these settings, but I've found them to be too
restrictive. So, I now find myself clicking "Past" on the Clipboard
tab
on the Home ribbon, and then "Paste Special" and then "Unformatted
Text," which is cumbersome.
Can someone tell me how I can assign the unformatted paste
functionality to keyboard shortcut "Ctrl+d"?

Thanks,
Chris Boorman.










Back to top
Chris Boorman
Guest





PostPosted: Fri Nov 30, 2007 6:54 pm    Post subject: Re: Unformatted Paste Reply with quote

Then my problem is - how do you assign a shortcut key combo to a macro in
the Outlook 2007 Editor?
It was easy before Office 2007.

Chris Boorman.

"Suzanne S. Barnhill" <sbarnhill@mvps.org> wrote in message
news:%237wEfg2MIHA.4712@TK2MSFTNGP04.phx.gbl...
Quote:
If you assign Ctrl+D to a macro, that setting will override the default
one.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:ehm9owxMIHA.2432@TK2MSFTNGP04.phx.gbl...
Now I'd like to assign this macro to Ctrl+d in the Outlook Editor. By
default, Ctrl+d is assigned to the Font dialog. Can anyone tell me how to
override that setting and re-assign Ctrl+d to a macro?


Chris.

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Os%23VatwMIHA.5400@TK2MSFTNGP04.phx.gbl...
I finally got it working. Here it is.

Sub UPaste07()
' Pastes the Clipboard` contents as unformatted plain text.
' Replaces the old verson :
' Selection.PasteSpecial DataType:=wdPasteText

On Error GoTo Oops

Dim WordDoc As Word.Document
Dim WordApp As Word.Application

Set WordDoc = ActiveInspector.WordEditor
Set WordApp = WordDoc.Application

WordApp.Selection.PasteSpecial DataType:=wdPasteText,
Placement:=wdInLine

End

Oops:
Beep

End Sub

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%2364V7GvGIHA.5328@TK2MSFTNGP05.phx.gbl...
I'm not quite sure what you mean by blocked, but ,,,

Outlook 2007 runs its own instance of an editor using the core of Word.
It has some functionality of its own but it is enhanced if you also
have Word 2007 on the same machine. The Word Editor in Outlook runs
under the Inspector you are using at the time, and you gain access to
it through ...

Application.ActiveInspector.WordEditor

(or something similar depending on exactly what you are doing). This
actually gives you a Word Document Object from where all the available
parts of the Word OM can be accessed.

--
Enjoy,
Tony

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uwK7thmGIHA.5328@TK2MSFTNGP05.phx.gbl...
It seems like Outlook 2007 is using Word 2007 as its editor (the same
features and dialog boxes are there), but I'm blocked from accessing
the Word object model.

* Is there a way to "unblock" access to the Word object model?
* Is there another object model that I can access?

--------------------------------------------------------------------------

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Omr8RZmGIHA.5160@TK2MSFTNGP05.phx.gbl...
Thanks.

I'd like to have this same functionality in Outlook 2007 (i.e., when
editing an e-mail message, have the Ctrl+d shortdcut produce an
unformatted paste). Can you help me with that too?


Chris Boorman.

--------------------------------------------------------------------------------

"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message
news:OejkQKsFIHA.748@TK2MSFTNGP04.phx.gbl...
The macro

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

works in both Word 2003 and 2007
and the edit > paste special function is already assigned to
ALT+CTRL+V

--

Graham Mayor - Word MVP

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


"Chris Boorman" <cjb@microsoft.com> wrote in message
news:eWn5nVoFIHA.4880@TK2MSFTNGP03.phx.gbl...
When I used Word 2003, I created a one-line macro for pasting
unformatted text:
(Selection.PasteSpecial DataType:=wdPasteText),
...and I assigned it the keyboard shortcut "Ctrl+d". For me, this
was truly an indispensible tool.
I now use Word 2007, and unfortunately my macro doesn't work. Word
2007 has a new feature that is supposed to make such a macro
unnecessary. In the Word 2007 Advanced Options page, there are three
options for pasting text.
Keep Source Formatting
Match Destination Formatting
Keep Text Only
I've experimented with these settings, but I've found them to be too
restrictive. So, I now find myself clicking "Past" on the Clipboard
tab
on the Home ribbon, and then "Paste Special" and then "Unformatted
Text," which is cumbersome.
Can someone tell me how I can assign the unformatted paste
functionality to keyboard shortcut "Ctrl+d"?

Thanks,
Chris Boorman.












Back to top
Suzanne S. Barnhill
Guest





PostPosted: Fri Nov 30, 2007 8:44 pm    Post subject: Re: Unformatted Paste Reply with quote

Now that I don't know, but surely someone in the six! NGs you cross-posted
to will be able to tell you.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uLujlJ4MIHA.3400@TK2MSFTNGP03.phx.gbl...
Quote:
Then my problem is - how do you assign a shortcut key combo to a macro in
the Outlook 2007 Editor?
It was easy before Office 2007.

Chris Boorman.

"Suzanne S. Barnhill" <sbarnhill@mvps.org> wrote in message
news:%237wEfg2MIHA.4712@TK2MSFTNGP04.phx.gbl...
If you assign Ctrl+D to a macro, that setting will override the default
one.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:ehm9owxMIHA.2432@TK2MSFTNGP04.phx.gbl...
Now I'd like to assign this macro to Ctrl+d in the Outlook Editor. By
default, Ctrl+d is assigned to the Font dialog. Can anyone tell me how
to override that setting and re-assign Ctrl+d to a macro?


Chris.

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Os%23VatwMIHA.5400@TK2MSFTNGP04.phx.gbl...
I finally got it working. Here it is.

Sub UPaste07()
' Pastes the Clipboard` contents as unformatted plain text.
' Replaces the old verson :
' Selection.PasteSpecial DataType:=wdPasteText

On Error GoTo Oops

Dim WordDoc As Word.Document
Dim WordApp As Word.Application

Set WordDoc = ActiveInspector.WordEditor
Set WordApp = WordDoc.Application

WordApp.Selection.PasteSpecial DataType:=wdPasteText,
Placement:=wdInLine

End

Oops:
Beep

End Sub

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%2364V7GvGIHA.5328@TK2MSFTNGP05.phx.gbl...
I'm not quite sure what you mean by blocked, but ,,,

Outlook 2007 runs its own instance of an editor using the core of
Word. It has some functionality of its own but it is enhanced if you
also have Word 2007 on the same machine. The Word Editor in Outlook
runs under the Inspector you are using at the time, and you gain
access to it through ...

Application.ActiveInspector.WordEditor

(or something similar depending on exactly what you are doing). This
actually gives you a Word Document Object from where all the available
parts of the Word OM can be accessed.

--
Enjoy,
Tony

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uwK7thmGIHA.5328@TK2MSFTNGP05.phx.gbl...
It seems like Outlook 2007 is using Word 2007 as its editor (the same
features and dialog boxes are there), but I'm blocked from accessing
the Word object model.

* Is there a way to "unblock" access to the Word object model?
* Is there another object model that I can access?

--------------------------------------------------------------------------

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Omr8RZmGIHA.5160@TK2MSFTNGP05.phx.gbl...
Thanks.

I'd like to have this same functionality in Outlook 2007 (i.e., when
editing an e-mail message, have the Ctrl+d shortdcut produce an
unformatted paste). Can you help me with that too?


Chris Boorman.

--------------------------------------------------------------------------------

"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message
news:OejkQKsFIHA.748@TK2MSFTNGP04.phx.gbl...
The macro

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

works in both Word 2003 and 2007
and the edit > paste special function is already assigned to
ALT+CTRL+V

--

Graham Mayor - Word MVP

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


"Chris Boorman" <cjb@microsoft.com> wrote in message
news:eWn5nVoFIHA.4880@TK2MSFTNGP03.phx.gbl...
When I used Word 2003, I created a one-line macro for pasting
unformatted text:
(Selection.PasteSpecial DataType:=wdPasteText),
...and I assigned it the keyboard shortcut "Ctrl+d". For me, this
was truly an indispensible tool.
I now use Word 2007, and unfortunately my macro doesn't work. Word
2007 has a new feature that is supposed to make such a macro
unnecessary. In the Word 2007 Advanced Options page, there are
three options for pasting text.
Keep Source Formatting
Match Destination Formatting
Keep Text Only
I've experimented with these settings, but I've found them to be
too restrictive. So, I now find myself clicking "Past" on the
Clipboard tab
on the Home ribbon, and then "Paste Special" and then "Unformatted
Text," which is cumbersome.
Can someone tell me how I can assign the unformatted paste
functionality to keyboard shortcut "Ctrl+d"?

Thanks,
Chris Boorman.














Back to top
Tony Jollans
Guest





PostPosted: Fri Nov 30, 2007 9:32 pm    Post subject: Re: Unformatted Paste Reply with quote

I don't think you can do it.

Outlook itself does not support hotkey customization - although there is a
trick using toolbars - and the Word editor in Outlook 2007 doesn't seem to
support key bindings.

--
Enjoy,
Tony

"Suzanne S. Barnhill" <sbarnhill@mvps.org> wrote in message
news:%23Ts$VH5MIHA.1204@TK2MSFTNGP03.phx.gbl...
Quote:
Now that I don't know, but surely someone in the six! NGs you cross-posted
to will be able to tell you.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uLujlJ4MIHA.3400@TK2MSFTNGP03.phx.gbl...
Then my problem is - how do you assign a shortcut key combo to a macro in
the Outlook 2007 Editor?
It was easy before Office 2007.

Chris Boorman.

"Suzanne S. Barnhill" <sbarnhill@mvps.org> wrote in message
news:%237wEfg2MIHA.4712@TK2MSFTNGP04.phx.gbl...
If you assign Ctrl+D to a macro, that setting will override the default
one.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:ehm9owxMIHA.2432@TK2MSFTNGP04.phx.gbl...
Now I'd like to assign this macro to Ctrl+d in the Outlook Editor. By
default, Ctrl+d is assigned to the Font dialog. Can anyone tell me how
to override that setting and re-assign Ctrl+d to a macro?


Chris.

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Os%23VatwMIHA.5400@TK2MSFTNGP04.phx.gbl...
I finally got it working. Here it is.

Sub UPaste07()
' Pastes the Clipboard` contents as unformatted plain text.
' Replaces the old verson :
' Selection.PasteSpecial DataType:=wdPasteText

On Error GoTo Oops

Dim WordDoc As Word.Document
Dim WordApp As Word.Application

Set WordDoc = ActiveInspector.WordEditor
Set WordApp = WordDoc.Application

WordApp.Selection.PasteSpecial DataType:=wdPasteText,
Placement:=wdInLine

End

Oops:
Beep

End Sub

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%2364V7GvGIHA.5328@TK2MSFTNGP05.phx.gbl...
I'm not quite sure what you mean by blocked, but ,,,

Outlook 2007 runs its own instance of an editor using the core of
Word. It has some functionality of its own but it is enhanced if you
also have Word 2007 on the same machine. The Word Editor in Outlook
runs under the Inspector you are using at the time, and you gain
access to it through ...

Application.ActiveInspector.WordEditor

(or something similar depending on exactly what you are doing). This
actually gives you a Word Document Object from where all the
available parts of the Word OM can be accessed.

--
Enjoy,
Tony

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:uwK7thmGIHA.5328@TK2MSFTNGP05.phx.gbl...
It seems like Outlook 2007 is using Word 2007 as its editor (the
same features and dialog boxes are there), but I'm blocked from
accessing the Word object model.

* Is there a way to "unblock" access to the Word object model?
* Is there another object model that I can access?

--------------------------------------------------------------------------

"Chris Boorman" <cjb@microsoft.com> wrote in message
news:Omr8RZmGIHA.5160@TK2MSFTNGP05.phx.gbl...
Thanks.

I'd like to have this same functionality in Outlook 2007 (i.e.,
when editing an e-mail message, have the Ctrl+d shortdcut produce
an unformatted paste). Can you help me with that too?


Chris Boorman.

--------------------------------------------------------------------------------

"Graham Mayor" <gmayor@REMOVETHISmvps.org> wrote in message
news:OejkQKsFIHA.748@TK2MSFTNGP04.phx.gbl...
The macro

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

works in both Word 2003 and 2007
and the edit > paste special function is already assigned to
ALT+CTRL+V

--

Graham Mayor - Word MVP

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


"Chris Boorman" <cjb@microsoft.com> wrote in message
news:eWn5nVoFIHA.4880@TK2MSFTNGP03.phx.gbl...
When I used Word 2003, I created a one-line macro for pasting
unformatted text:
(Selection.PasteSpecial DataType:=wdPasteText),
...and I assigned it the keyboard shortcut "Ctrl+d". For me, this
was truly an indispensible tool.
I now use Word 2007, and unfortunately my macro doesn't work. Word
2007 has a new feature that is supposed to make such a macro
unnecessary. In the Word 2007 Advanced Options page, there are
three options for pasting text.
Keep Source Formatting
Match Destination Formatting
Keep Text Only
I've experimented with these settings, but I've found them to be
too restrictive. So, I now find myself clicking "Past" on the
Clipboard tab
on the Home ribbon, and then "Paste Special" and then "Unformatted
Text," which is cumbersome.
Can someone tell me how I can assign the unformatted paste
functionality to keyboard shortcut "Ctrl+d"?

Thanks,
Chris Boorman.
















Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> word customization menustoolbars All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum