PDA

View Full Version : Outlook 2013 - VB Script not available once email is received



anonymous18
12-14-2015, 05:37 AM
Hi,

I am very new to this forum and I have been getting a lot of useful tips here, but this particular issue, I don't see the solution yet.

I would be very thankful for your help on this issue.

Issue: I have created this custom form in MS Outlook 2013, just to test the functionality, I have just put a "msgbox" command in a command button

it works fine when you are still constructing the email, when you click the button, it executes the vb script that I have put.
14972

but once I have sent the mail, and it is received by the recipient, the button is not working anymore. Clicking the button does not do anything
14973

then going to design mode from this view, I see that the vbscript is still there. Why is the script not executable by the recipient in his inbox?
14974

Thank you in advance for your help.

Regards,
Pete

anonymous18
12-23-2015, 02:57 AM
up

skatonni
12-23-2015, 06:11 AM
Neither you nor others want mail with live code.

http://www.rondebruin.nl/win/s4/win004.htm

"Be aware that Kill permanently deletes the file. There is no way to "Undo" the delete, the file is not sent to the Windows Recycle Bin(Same for the macro's that use the filesystemobject)."


Sub DeleteExample1()
'You can use this to delete all the files in the folder Test
On Error Resume Next
Kill "C:\Users\Ron\Test\*.*"
On Error GoTo 0
End Sub

You could start your search here to see if something can be done safely. http://www.outlookcode.com/article.aspx?id=67

anonymous18
12-28-2015, 12:42 AM
Big thanks for the feedback skatonni, seems to be what I need to read first on this topic :)

Cheers!
Peter