![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi
I have a macro in word which changes the default path for the save as dialogue box. In word it word it works fine but I copied the code into Outlook an I get the following message Runtime Error 424 Object required and the following line is highlighted in yellow when I click debug. Rem ** This sets the default directory for this word session to the folder variable ** Options.DefaultFilePath(wdDocumentsPath) = Folder$ Taking the cursor over the Folder$ display the correct path so the code before seems to be okay What do I need to do to sort Thanks for any help Graham |
#2
|
|||
|
|||
![]()
Am Wed, 21 Jun 2006 08:29:37 -0700 schrieb Graham:
Outlook doesn´t know neither the Options object nor a DefaultFilePath method. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hi I have a macro in word which changes the default path for the save as dialogue box. In word it word it works fine but I copied the code into Outlook an I get the following message Runtime Error 424 Object required and the following line is highlighted in yellow when I click debug. Rem ** This sets the default directory for this word session to the folder variable ** Options.DefaultFilePath(wdDocumentsPath) = Folder$ Taking the cursor over the Folder$ display the correct path so the code before seems to be okay What do I need to do to sort Thanks for any help Graham |
#3
|
|||
|
|||
![]()
Hi
Unfortunately I do not know much about Outlook VBA all I normally do is create Macros in word the amend some of the code to do what I need. What is the similar command in Outlook that will allow me to change the default files path to the one held in the variable Folder$ Regards Graham "Michael Bauer" wrote: Am Wed, 21 Jun 2006 08:29:37 -0700 schrieb Graham: Outlook doesn´t know neither the Options object nor a DefaultFilePath method. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hi I have a macro in word which changes the default path for the save as dialogue box. In word it word it works fine but I copied the code into Outlook an I get the following message Runtime Error 424 Object required and the following line is highlighted in yellow when I click debug. Rem ** This sets the default directory for this word session to the folder variable ** Options.DefaultFilePath(wdDocumentsPath) = Folder$ Taking the cursor over the Folder$ display the correct path so the code before seems to be okay What do I need to do to sort Thanks for any help Graham |
#4
|
|||
|
|||
![]()
Am Wed, 21 Jun 2006 14:35:01 -0700 schrieb Graham:
There´s nothing similar in Outlook. For attachments you can edit the Registry (http://support.microsoft.com/kb/252732/en-us). But that takes affect not before the next start of Outlook. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hi Unfortunately I do not know much about Outlook VBA all I normally do is create Macros in word the amend some of the code to do what I need. What is the similar command in Outlook that will allow me to change the default files path to the one held in the variable Folder$ Regards Graham "Michael Bauer" wrote: Am Wed, 21 Jun 2006 08:29:37 -0700 schrieb Graham: Outlook doesn´t know neither the Options object nor a DefaultFilePath method. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hi I have a macro in word which changes the default path for the save as dialogue box. In word it word it works fine but I copied the code into Outlook an I get the following message Runtime Error 424 Object required and the following line is highlighted in yellow when I click debug. Rem ** This sets the default directory for this word session to the folder variable ** Options.DefaultFilePath(wdDocumentsPath) = Folder$ Taking the cursor over the Folder$ display the correct path so the code before seems to be okay What do I need to do to sort Thanks for any help Graham |
#5
|
|||
|
|||
![]()
You can't just copy Word code into Outlook and expect it to work. You must instantiate a Word.Application object with CreateObject() and then derive all the Word objects from that object.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Graham" wrote in message ... Hi I have a macro in word which changes the default path for the save as dialogue box. In word it word it works fine but I copied the code into Outlook an I get the following message Runtime Error 424 Object required and the following line is highlighted in yellow when I click debug. Rem ** This sets the default directory for this word session to the folder variable ** Options.DefaultFilePath(wdDocumentsPath) = Folder$ Taking the cursor over the Folder$ display the correct path so the code before seems to be okay What do I need to do to sort Thanks for any help Graham |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Runtime error message | Nancy | Outlook - General Queries | 0 | April 20th 06 10:23 AM |
IE 6.0 Runtime Error | Platebanger | Outlook Express | 2 | April 14th 06 01:50 PM |
runtime error! X | chula819 | Outlook Express | 1 | March 24th 06 01:27 PM |
runtime error! X | chula819 | Outlook Express | 0 | March 24th 06 09:28 AM |
Runtime error | KENNETH M LONG | Outlook Express | 3 | January 20th 06 12:18 AM |