![]() |
|
#2
|
|||
|
|||
|
The code in Outlook looks more like this. Untested.
Code:
Option Explicit
Public Sub PasteUnformatted()
Dim oDoc As Object
Dim itm As Object
Dim objSel As Word.Selection
On error resume next
Set itm = Application.ActiveInspector.CurrentItem
on error goto 0
if itm is nothing then
msgbox "Something wrong with current item"
exit sub
end if
If itm.GetInspector.EditorType = olEditorWord Then
Set oDoc = itm.GetInspector.WordEditor
Set objSel = objDoc.Windows(1).Selection
objSel.PasteSpecial Link:=False, DataType:=wdPasteText
End If
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EXCEL macro problem please help! | ryguy551 | Excel Programming | 2 | 05-22-2014 03:58 PM |
| Problem with macro | MS baby | Excel Programming | 4 | 03-31-2014 02:47 PM |
Problem with macro
|
tmill29 | Excel Programming | 1 | 06-08-2013 09:59 AM |
Moving data macro problem
|
MattMurdock | Excel Programming | 1 | 07-20-2012 04:49 AM |
Another simple macro problem
|
Ulodesk | Word VBA | 1 | 06-08-2012 06:24 PM |