Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA in Win 2K

I am often unable to do things in VBA in Win 2K that work fine in Win
98se. My current problem is in using SendMail. The single line of code:

ThisWorkbook.Sendmail "
works fine in Win 98 but when I run the same code in Win 2K (SP 3) I
get a 1004 error, "Application or object defined error".

Also, none of the routing functions work in 2K but work fine in 98.

In Win 2K I am logged on as an administrator.

Other than the different versions of Windows, everything else is
basically the same on the two machines - Excel 2K (SR 3), Internet
Explorer 6.2 is the browser, Outlook Express is the only email client
and Outlook is not installed.
Has anyone else had this problem and found a solution?

Thanks,
Tony

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default VBA in Win 2K

have you tried turning on the vba recorder and then FileSend ToRecipient

then looking at the code?


" wrote:

I am often unable to do things in VBA in Win 2K that work fine in Win
98se. My current problem is in using SendMail. The single line of code:

ThisWorkbook.Sendmail "
works fine in Win 98 but when I run the same code in Win 2K (SP 3) I
get a 1004 error, "Application or object defined error".

Also, none of the routing functions work in 2K but work fine in 98.

In Win 2K I am logged on as an administrator.

Other than the different versions of Windows, everything else is
basically the same on the two machines - Excel 2K (SR 3), Internet
Explorer 6.2 is the browser, Outlook Express is the only email client
and Outlook is not installed.
Has anyone else had this problem and found a solution?

Thanks,
Tony


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VBA in Win 2K

Thanks for the reply. Yes I did try recording it and nothing records
even though the email is sent.

gocush wrote:
have you tried turning on the vba recorder and then FileSend

ToRecipient

then looking at the code?


" wrote:

I am often unable to do things in VBA in Win 2K that work fine in

Win
98se. My current problem is in using SendMail. The single line of

code:

ThisWorkbook.Sendmail "
works fine in Win 98 but when I run the same code in Win 2K (SP 3)

I
get a 1004 error, "Application or object defined error".

Also, none of the routing functions work in 2K but work fine in 98.

In Win 2K I am logged on as an administrator.

Other than the different versions of Windows, everything else is
basically the same on the two machines - Excel 2K (SR 3), Internet
Explorer 6.2 is the browser, Outlook Express is the only email

client
and Outlook is not installed.
Has anyone else had this problem and found a solution?

Thanks,
Tony



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default VBA in Win 2K

Are you able to Record any macros?
Are you SURE you clicked on the record button?
When you push the Record Button do you see the Record Macro dialog? If not,
either you haven't pushed the record button or you have a system failure.
If it is showing, do you know how the find the recorded macro in the Visual
Basic Editor: Alt+F11
And how to find your macros in the Project Explorer?

"Just Me" wrote:

Thanks for the reply. Yes I did try recording it and nothing records
even though the email is sent.

gocush wrote:
have you tried turning on the vba recorder and then FileSend

ToRecipient

then looking at the code?


" wrote:

I am often unable to do things in VBA in Win 2K that work fine in

Win
98se. My current problem is in using SendMail. The single line of

code:

ThisWorkbook.Sendmail "
works fine in Win 98 but when I run the same code in Win 2K (SP 3)

I
get a 1004 error, "Application or object defined error".

Also, none of the routing functions work in 2K but work fine in 98.

In Win 2K I am logged on as an administrator.

Other than the different versions of Windows, everything else is
basically the same on the two machines - Excel 2K (SR 3), Internet
Explorer 6.2 is the browser, Outlook Express is the only email

client
and Outlook is not installed.
Has anyone else had this problem and found a solution?

Thanks,
Tony






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"