![]() |
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
|
|||
|
|||
![]()
I'm using the following code, from Excel, with no reference to Outlook:
Dim objOutlook As Object Dim objMailItem As Object Dim myCreatedEmails() As Object Sub CreateAndDisplayEmails() Set objOutlook = CreateObject("Outlook.Application") Erase myCreatedEmails For i = 1 To 3 Set objMailItem = objOutlook.CreateItem(0) With objMailItem .To = "Tester" & i .Subject = "Tester" & i End With ReDim myCreatedEmails(k) '##### falls down on next line ##### myCreatedEmails(k) = objMailItem k = k + 1 Next i For k = 1 To UBound(myCreatedEmails) myCreatedEmails(k).Display Next k End Sub ....I've marked where it already falls down and I assume even if this line is fixed then it'll fall down later on on the line "myCreatedEmails(k).Display" The above must be pretty bl##dy close!...can anyone help? Help appreciated Jason |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to retain 10 days items in Outlook 2003 deleted items folder? | Balthazar | Outlook - Installation | 2 | June 7th 06 04:05 PM |
Reading mails from Sent items, Deleted items, Draft folder of outlook from VB6.0 | Viswanathan | Outlook - General Queries | 8 | May 26th 06 04:31 PM |
Can't delete items or move items in Outlook 2002 | Garret Swayne | Outlook - General Queries | 2 | April 14th 06 08:15 AM |
Download free program for array phone codes correction | Victor Bilous | Outlook - General Queries | 5 | February 1st 06 09:18 PM |
Download free program for array phone codes correction | Victor Bilous | Outlook - Using Contacts | 0 | January 31st 06 07:20 AM |