Excel 2000 - Outlook Object Model Help

TheShaunMichael

Board Regular
Joined
Oct 24, 2009
Messages
57
I have a Macro written for Excel 2007:

Sub CreateJobEmail()

Dim WSS As Worksheet
Set WSS = Worksheets("Sheet1")
myitem = CreateItem(olMailItem)

'Creates a new e-mail item and modifies its properties
Dim objMail As Outlook.MailItem

'Create e-mail item
Set objMail = Outlook.CreateItem(olMailItem)
With objMail
'Set body format to HTML
.BodyFormat = olFormatHTML
.HTMLBody = "Please confirm receipt..."
.Subject = WSS.Cells(2,...
.CC = "shwalker@....
.Display
End With
End Sub

Can someone explain how to make this type of Macro work for Office/Excel/Outlook 2000? I'm not familiar with 2000 at all. I'm not even sure how to find the references library yet.

Thanks in advance!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Have you tried the code in other versions?

Is that all the code?

It seems to be missing something, perhaps the part that creates/finds an instance of Outlook.
 
Upvote 0
Yes I've tried it in 2000 and it doesn't work. I'm truthfully NOT experienced at all in pairing VBA with Outlook & other MS programs so you may very well be correct about missing a string that finds the instance of Outlook. Can you possibly help me out?
 
Upvote 0

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top