Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-10-2014, 12:01 PM
niton niton is offline Macro problem Windows 7 64bit Macro problem Office 2010 64bit
Competent Performer
 
Join Date: Jul 2012
Posts: 102
niton is on a distinguished road
Default

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
No shortcuts except Alt+number shortcuts.
Reply With Quote
 



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
Macro problem Problem with macro tmill29 Excel Programming 1 06-08-2013 09:59 AM
Macro problem Moving data macro problem MattMurdock Excel Programming 1 07-20-2012 04:49 AM
Macro problem Another simple macro problem Ulodesk Word VBA 1 06-08-2012 06:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft