Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Function for Outlook98?

Status
Not open for further replies.

jisoo22

Programmer
Apr 30, 2001
277
US
Does anyone know if there's a substitute for the "Split()" function in Outlook 98? I finished up writing a macro in Outlook 2000 and lo and behold, it doesn't work in 98. Sucks to be me.

Thanks!
Glen
 
Ok, I think I have something figured out. But it doesn't seem to be working. Here's the premise behind it: a macro takes information from an Excel sheet, sticks it into an Outlook email and ships it off. Then, another macro opens up Outlook, takes the info off the email and sticks it back into the same Excel sheet. Unfortunately my way doesn't seem to work. Can anyone tell me what's wrong with this bit of code?

Sub Item_Open()

Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNamespace.GetDefaultFolder(6)
myFolder.Display
Set myItem = myFolder.Items(1)
myItem.Display

x = myItem.Body
For Each x In myFolder.Items
a = InStr(x, "Claim Type: ")
claimtypestr = Mid(x, a + 12, b)
Application.ActiveSheet.Range("B2").Value = claimtypestr
b = InStr(x, "Dealer #: ")

Next
End Sub
[/i}

Thanks
 
I may be able to help.
I have written only 1 VBA/Outlook macro and it works on our NT4 network.
It takes the text from an listbox on our intranet and opens Outlook and sends it to a recipient.
Has any of your tries worked as in has it ever sent and just not received or or or or ....
let me know
drat@mediaone.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top