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

Runtime error 424



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 21st 06, 05:29 PM posted to microsoft.public.outlook.program_vba
Graham
external usenet poster
 
Posts: 37
Default Runtime error 424

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
Ads
  #2  
Old June 21st 06, 05:33 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Runtime error 424

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

  #3  
Old June 21st 06, 06:12 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Runtime error 424

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  
Old June 21st 06, 11:35 PM posted to microsoft.public.outlook.program_vba
Graham
external usenet poster
 
Posts: 37
Default Runtime error 424

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  
Old June 22nd 06, 06:55 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Runtime error 424

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


 




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
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


All times are GMT +1. The time now is 09:31 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.