Consulting

Results 1 to 4 of 4

Thread: Outlook 2013 - VB Script not available once email is received

  1. #1

    Unhappy Outlook 2013 - VB Script not available once email is received

    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.
    1.jpg

    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
    2.jpg

    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?
    3.jpg

    Thank you in advance for your help.

    Regards,
    Pete

  2. #2
    up

  3. #3
    VBAX Mentor skatonni's Avatar
    Joined
    Jun 2006
    Posts
    347
    Location
    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
    To debug, mouse-click anywhere in the code. Press F8 repeatedly to step through the code. http://www.cpearson.com/excel/DebuggingVBA.aspx

    If your problem has been solved in your thread, mark the thread "Solved" by going to the "Thread Tools" dropdown at the top of the thread. You might also consider rating the thread by going to the "Rate Thread" dropdown.

  4. #4
    Big thanks for the feedback skatonni, seems to be what I need to read first on this topic

    Cheers!
    Peter

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •