Want to have macro execute automatically when doc created

Discussion in 'Word' started by chrscote, Sep 16, 2016.

  1. chrscote

    chrscote

    Joined:
    Sep 16, 2016
    Messages:
    2
    Likes Received:
    0
    I am working on an IBM Doors script which creates a document from a .dot file with some special codes to tell Word to do certain things. At this time, when we run the script and write the file to Word, we get the Security Notice about macros being disabled. However, we would like to automate this process so that users may create multiple different documents at once but, for security reasons, we don't want to enable all macros, just the ones for this document. Another issue is that the folder used may not be the same all the time. We update the folder names as each version is sent out, so adding the folder as a trusted location doesn't work in our case. Does anyone know of a way to allow the macros to run without user interaction every time a document is created?
     
    chrscote, Sep 16, 2016
    #1
    1. Advertisements

  2. chrscote

    macropod

    Joined:
    Mar 2, 2012
    Messages:
    177
    Likes Received:
    10
    macropod, Sep 17, 2016
    #2
    1. Advertisements

  3. chrscote

    chrscote

    Joined:
    Sep 16, 2016
    Messages:
    2
    Likes Received:
    0
    The problem is that this Word file is zipped up within a set of folders for other people to use. I can set up my folder to be a trusted location, but the people who primarily use it don't want to have to set up their own trusted location. (I know it's stupid, but our users just want to run the program without having to do anything every time we send out an updated version.) I understand the reasoning behind having the message, but I'm trying to create a Java program that will generate any number of documents at one time which then open each and use the macro to add some special formatting to the document that DOORS can't do.
     
    Last edited: Sep 19, 2016
    chrscote, Sep 19, 2016
    #3
  4. chrscote

    macropod

    Joined:
    Mar 2, 2012
    Messages:
    177
    Likes Received:
    10
    macropod, Sep 20, 2016
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. woolmep
    Replies:
    1
    Views:
    609
    woolmep
    Mar 20, 2012
  2. parastesh
    Replies:
    1
    Views:
    557
    Patrick
    Jun 3, 2012
  3. Declan Colman
    Replies:
    0
    Views:
    585
    Declan Colman
    Jun 27, 2012
  4. Wilbert
    Replies:
    0
    Views:
    823
    Wilbert
    Mar 20, 2013
  5. David92595

    Mail Merge Word Doc over SSL VPN

    David92595, Aug 23, 2013, in forum: Word
    Replies:
    0
    Views:
    487
    David92595
    Aug 23, 2013
  6. janola

    Converting Docx to Doc

    janola, Mar 11, 2014, in forum: Word
    Replies:
    2
    Views:
    701
    learnitanytime
    May 26, 2014
  7. kate12402
    Replies:
    0
    Views:
    573
    kate12402
    Jun 10, 2014
  8. kate12402
    Replies:
    0
    Views:
    574
    kate12402
    Jun 10, 2014
Loading...