basictypeuser
Technical User
Looking for some help,
Took VB6 basic several years ago, but hoping to find some help on a word template I am creating. I want to add a print command button on the form as well a button to open my email include the specified email address, populate the subject line with some text, and attach the subject form.
I believe printing the form with some code should be fairly easy (if I could remember how)
the second button I want sounds easy but I am really lost on where to start.
Got some help already from a response ASSPIN had sent, but still need to figure out how to attach the form.
// This code will cause an e-mail to be sent
Set ol = CreateObject("Outlook.Application")
Set olns = ol.GetNamespace("MAPI")
Set olmail = ol.CreateItem(olMailItem)
With olmail
.To = "support@address.com"
.Subject = "Service Support Request"
.body = "Request form attached"
.Send
End With
Any help would be appreciated
Took VB6 basic several years ago, but hoping to find some help on a word template I am creating. I want to add a print command button on the form as well a button to open my email include the specified email address, populate the subject line with some text, and attach the subject form.
I believe printing the form with some code should be fairly easy (if I could remember how)
the second button I want sounds easy but I am really lost on where to start.
Got some help already from a response ASSPIN had sent, but still need to figure out how to attach the form.
// This code will cause an e-mail to be sent
Set ol = CreateObject("Outlook.Application")
Set olns = ol.GetNamespace("MAPI")
Set olmail = ol.CreateItem(olMailItem)
With olmail
.To = "support@address.com"
.Subject = "Service Support Request"
.body = "Request form attached"
.Send
End With
Any help would be appreciated