Results 1 to 12 of 12

Thread: poping up a message box and opening another file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Regular
    Joined
    Apr 2018
    Posts
    7
    Location
    Thank you gmayor,

    good thing to add and error management, but unexpectedly the script (put in "this document" part of visualbasic) is not launched when hitting ctrl+s (save) !?

    I was working on it since this morning and still nothing interesting discovered...

    EDIT :looking on the www it looks like it comes from the fact that I have no clue how different module types work...
    EDIT 2: thanx to https://stackoverflow.com/a/40673321/9704680 it is working

     With Word 2016 I found that a change was necessary
    
      
    
    Set X.App = Word.Application
    should be
    Set X.appWord = Word.Application
    Last edited by olhey; 04-26-2018 at 06:40 AM.

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
  •