Cannot run create macros within Outlook 2007

Status
Not open for further replies.
B

bmcknight



I have a user who is able to record macros within Word and run them. However, when she attempts to run the macro within an open Outlook message (by going to the "Macros" button that is within the Developer tab of an open message window, these same macros do not initially appear despite the fact that Word is the exclusive editor for Outlook 2007. To the best of my understanding according to Microsoft, is is not possible to record macros within Outlook (if you can, I do not see where or how). It is possble to make the macro appear within Outlook if you were to copy the subroutine pertaining to the macro from Word's Visual Basic editor to Outlook's Visual Basic editor, but when you then actually attempt to run the macro within Outlook, you get the following error message

----------------------------- Runtime Error '424'
Object Required
----------------------------

According to the below, referenced article (authored by Sue Mosherwho I guess is a top of the line Outlook expert), this is because "the Outlook object model does not support an intrinsic Selection object". Code is provided within the article which is designed to enable the Outlook message to access a Word.Selection object. However, when I attempted to incorporate this code into Outlook Visual Basic editor to run a test macro, I got the following error message:

---------------------------------------------- Compile error:
User-defined type not defined
----------------
Should I be modifying this code to a greater extent? I have some VB experience as a student, but not on a pro level. Regardless, I would like to be able to get my user to be able to run her macros within an Outlook e-mail.

http://turtleflock-ol2007.spaces.live.com/blog/cns!C1013F1F9A99E3D8!579.entry&sa=79757417
 
B

billja-ms



Hi,

Typically that error message is a sign that you did not reference the Word object library in Outlook's Visual Basic Editor (VBE). Without doing this, Outlook VBA code wouldn't know what a "Word" object is in your code. So in the VBE, be sure to go to Tools / References and then scroll down in the list to enable the "Microsoft Word 12.0 Object Library" (I believe that's what it's called, I don't have an Office 2007 machine in front of me at the moment).

Bill Jacob
Microsoft Customer Service and Support - Messaging Developer
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
L Cannot run script from rule Outlook VBA and Custom Forms 7
S outlook error 0x80070021 a prosses has outlook files open and backup cannot run Using Outlook 2
J I cannot open outlook. It says errors have been detected in the file. It says to run scanpst.exe but__I cannot find it on the computer. Can I get help Using Outlook 1
D I cannot get Outlook 2010 to run without having an email account. Using Outlook 1
N Cannot display the folder. There is not enough free memory to run this program. Quit one or more pro Using Outlook 10
N Cannot display the folder. There is not enough free memory to run this program. Quit one or more pro Using Outlook 9
D Outlook report the error - "Cannot display the folder. There is not enough free memory to run this p Using Outlook 34
T Cannot Get Outlook 2010 to run - can never get past the 'Cannot start Microsoft Outlook. Cannot open the Outlook window' Using Outlook 2
B help!!!! cannot run outlook1.pst. errors, then something about (scanpst.exe) help?? will not open ou Using Outlook 2
G Cannot Move Autocomplete File to New Computer Using Outlook 4
rubaboo The vew cannot be found Outlook VBA and Custom Forms 0
A Cannot copy this folder because it may contain private items Using Outlook 0
L Cannot open PST file for first session each day Using Outlook 6
David in Mississippi New (Feb 2020) install of Outlook 365 - Cannot specify PST for different accounts Using Outlook 0
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
noshairwan Registry cannot be found, Outlook Security Using Outlook 2
Marc2019 Cannot input Vietnamese Characters on my MSOutlook 2016 in Windows 7 Using Outlook 0
T Cannot remove needless PST Using Outlook 1
Marc2019 Cannot setup Outlook Account on Mac Os 10.6.8 Using Outlook 3
N pst files are recreating automaticaly and cannot be deleted Using Outlook 6
Mark Foley Cannot enable add-in in outlook 2010 Using Outlook 0
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
A Created a new user account and the local account cannot see email Using Outlook 3
iwshim outlook 2013 - I cannot see the "Manage Add-ins" Using Outlook 2
T Cannot connect to main BT email account, sub accts okay Using Outlook 0
O The page that you are trying to access cannot be loaded. Using Outlook 0
M Daily Task List Minimized Cannot Display Using Outlook 2
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
DariTrevino MIcrosoft Outlook PST file cannot repair Using Outlook 1
B One email cannot be sent or received (but leaves outbox!) Using Outlook 1
C Outlook 2016 cannot delete, email showing in root Exchange Server Administration 5
S Outlook.com cannot edit some contacts Using Outlook.com accounts in Outlook 5
B Search: Cannot find which Folder Contains a Message Using Outlook 3
C Outlook - cannot save subject line changes Using Outlook 2
M cannot change delivery folders with IMAP accounts Using Outlook 0
S Appointment-Cannot set Categories because ConversationID is not set Outlook VBA and Custom Forms 1
Fozzie Bear Cannot post "Sneaky URL"!! Using Outlook.com accounts in Outlook 2
Commodore Search cannot complete the indexing of your Outlook data Using Outlook 6
S Outlook 2010 Cannot Open Attachments Using Outlook 14
A Cannot Figure Out This VBA Outlook VBA and Custom Forms 2
A Cannot Figure Out One Thing on VBA Outlook VBA and Custom Forms 2
Brian Murphy Exchange Online Everything a Transport Rule should do and cannot Exchange Server Administration 1
A Error: The name cannot be matched to a name in the address list Using Outlook.com accounts in Outlook 0
K Other Shared Calendar on Outlook cannot change items Using Outlook.com accounts in Outlook 7
T Outlook 2016 cannot connect after transition to Outlook Mail Using Outlook.com accounts in Outlook 4
L Cannot Connect to BCM database BCM (Business Contact Manager) 9
A Cannot connect to BCM database BCM (Business Contact Manager) 3
Diane Poremsky The custom form cannot be opened. Outlook will use an Outlook form instead. New Slipstick.com Articles 0
T Cannot access outlook.com accounts in Outlook 2016 Using Outlook 1
T Outlook 2016 mp3 attach "this file cannot be preview because there is no previewer installed for it" Using Outlook 1
Similar threads


















































Top