Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default How do I ref OutlookCOM in my Excel2003 PC and run it on Excel2000

Hello,
I made a macro (in Excel 2003) to send emails based on the data from Excel
Worksheet. The macro resides in excel file and using outlook COM object. It
works fine in Excel2003, but totally failed in Excel2000.

I know that some code doesn't run on older excel or outlook objects, so I
made sure the syntax is backward compatible. And both Excel2000 and
Outlook2000 are installed on the PC.

Still, my macro failed to compile in Excel2000. It seems like there is a
reference conflic; the well known library version problem. Do you know how do
I get around it?

Why does my code compiles in both Excel2000 and 2003 if I didn't reference
extra library? Can I reference Outlook COM based on the user's computer
library version? Anyway to solve this problem?

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default How do I ref OutlookCOM in my Excel2003 PC and run it on Excel2000

Distribute with a reference set to the lowest version of Outlook of any of
your users.

If the file is subsequently saved on a later version, it will no longer work
on an earlier version. If this is a possible scenario convert to Late
binding.

Regards,
Peter T

"jchen" wrote in message
...
Hello,
I made a macro (in Excel 2003) to send emails based on the data from Excel
Worksheet. The macro resides in excel file and using outlook COM object.

It
works fine in Excel2003, but totally failed in Excel2000.

I know that some code doesn't run on older excel or outlook objects, so I
made sure the syntax is backward compatible. And both Excel2000 and
Outlook2000 are installed on the PC.

Still, my macro failed to compile in Excel2000. It seems like there is a
reference conflic; the well known library version problem. Do you know how

do
I get around it?

Why does my code compiles in both Excel2000 and 2003 if I didn't reference
extra library? Can I reference Outlook COM based on the user's computer
library version? Anyway to solve this problem?

Thank you.



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening .csv file in Excel2003 vs Excel2000 Holmark Excel Discussion (Misc queries) 9 April 24th 07 07:43 PM
How can I use autosave from excel2000 in excel2003 Claude J Johnson CPA Australia Excel Worksheet Functions 14 November 28th 06 06:50 PM
Reference Outlook in Excel2003, but not working in Excel2000. jchen Excel Programming 0 August 22nd 06 02:09 AM
excel2000 owc doesn't work on excel2003 ! help! Excel Discussion (Misc queries) 0 January 21st 05 08:29 AM
Can't open Excel2003 workbook containing VBA macros with Excel2000. Paul S. Natanson Excel Programming 2 June 18th 04 03:57 PM


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