A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2007 Macro



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 2nd 07, 08:36 PM posted to microsoft.public.outlook.program_vba
Garan
external usenet poster
 
Posts: 3
Default Outlook 2007 Macro

I am new to Outlook Macros and Macros in general. I am trying to insert a
word document as text, into the body of a new email message.

I am using Outlook 2007 but it previously worked in Outlook 2003. The
debugger stops on ChangeFileOpenDirectory.

Sub Above_Average_credit()
'
' Macro recorded 6/26/2004 by Garan
'
ChangeFileOpenDirectory "\\Server01\Hawksoft\DOCUMENT\"
Selection.InsertFile FileName:="Above Average Credit.doc", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
End Sub

I have tried searching this forum and also tried searching the web for
answers to my question with no luck. I know I could manually do what the
macro does but I have many documents with different macros for each one. I
have also tried to record a new macro in Word 2007, to eliminate
compatibilies with a different version of Word, but it spits out the same
macro commands. The macro works in Word 2007 but not Outlook.

What am I missing?
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Macro for Outlook 2007 Bravadarose Outlook and VBA 3 June 28th 07 02:46 PM
Writing a macro in Outlook 2007 Tammy Outlook - General Queries 2 May 8th 07 03:47 PM
(2007) Excel macro blocks Outlook??? C. Moya Outlook - General Queries 20 April 30th 07 04:18 PM
Outlook 2007: assigning keyboard shortcut to email editor macro Mikael Outlook and VBA 6 March 17th 07 06:42 PM
Macro works in Word 2007, but not in Outlook 2007 LesG Outlook and VBA 13 March 10th 07 11:30 PM


All times are GMT +1. The time now is 10:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.