jaxonvoice
New Member
- Joined
- Mar 15, 2009
- Messages
- 19
Hi All,
I am trying to automatically send an email via .oft, the code works except that when i disable any alerts the oft doesnt update.
is there a way to automatically update the links without the prompt " this document contains links that may refer to other files. do you want to update this doc..."
what im trying to do:
1. Run the code in excel
2. automatically Update the oft file that is link to excel and send
appreciate your help
Here's the code
Set OutlookApp = CreateObject("Outlook.Application")
myoft = ("C:\test.oft")
With OutlookApp.CreateItemFromTemplate(myoft)
'it prompts me to update the data, i want to get rid of this and update automatically
.to = "abc@xyz.com"
.Subject = "hello"
.display 'when i remove this the file does not update
.send
End With
I am trying to automatically send an email via .oft, the code works except that when i disable any alerts the oft doesnt update.
is there a way to automatically update the links without the prompt " this document contains links that may refer to other files. do you want to update this doc..."
what im trying to do:
1. Run the code in excel
2. automatically Update the oft file that is link to excel and send
appreciate your help
Here's the code
Set OutlookApp = CreateObject("Outlook.Application")
myoft = ("C:\test.oft")
With OutlookApp.CreateItemFromTemplate(myoft)
'it prompts me to update the data, i want to get rid of this and update automatically
.to = "abc@xyz.com"
.Subject = "hello"
.display 'when i remove this the file does not update
.send
End With