Hi guys. I am both (a) new here and (b) new to VB altogether so I apologize if this seems like a stupid question.
In my office we have an email we send several times per day to numerous recipients with just minor variations. Once upon a time we had a .vbs (written by an old employee) that popped up a text box asking two or three simple questions like the date and an item number. Unfortunately my previous boss was confused by technology (and therefore the script) and he managed to delete not only the script but the several backups I made. Now he is gone and I'd like to recreate the script.
Ex:
Textbox 1: What is today's date? [User enters "19 July 07"]
Textbox 2: What is the item code? [User enters "ABC123"]
Outlook message opens with the 15 recipients (or whatever) already in the TO: box and the subject line comes out as
"19 July 07 - Update to item ABC123"
That's just a basic example of what I'm looking to do since I won't bore you with the minutae. Anyway, then we can just quickly look over the email and click "send."
I found this code to open a new message by searching:
but I'm not sure how to make the textbox prompts and add that data to the new message. Any suggestions y'all can make would be much appreciated, because we spend countless hours every week on these emails and I think we could shave 75% off of that if I can get this script working again.
Thanks in advance!!
Regards,
Jim
In my office we have an email we send several times per day to numerous recipients with just minor variations. Once upon a time we had a .vbs (written by an old employee) that popped up a text box asking two or three simple questions like the date and an item number. Unfortunately my previous boss was confused by technology (and therefore the script) and he managed to delete not only the script but the several backups I made. Now he is gone and I'd like to recreate the script.
Ex:
Textbox 1: What is today's date? [User enters "19 July 07"]
Textbox 2: What is the item code? [User enters "ABC123"]
Outlook message opens with the 15 recipients (or whatever) already in the TO: box and the subject line comes out as
"19 July 07 - Update to item ABC123"
That's just a basic example of what I'm looking to do since I won't bore you with the minutae. Anyway, then we can just quickly look over the email and click "send."
I found this code to open a new message by searching:
Code:
Set MyApp = CreateObject("Outlook.Application")
Set MyItem = MyApp.CreateItem(0) 'olMailItem
With MyItem
.To = "a@b.c"
.Subject = "Subject"
.ReadReceiptRequested = True
.HTMLBody = "This is the message.<BR>This is line 2."
End With
MyItem.Display
Thanks in advance!!
Regards,
Jim