Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Forcing enable macors to see pages (Word 2000)

    I need to force a user of a word doc to enable macros before they are able to view the pages of the document. Does anyone have an idea how I can do this?

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Forcing enable macors to see pages (Word 2000)

    Not so sure there is a way to do this programmatically unless you can find a registry key to modify.
    You may be stuck with a manual procedure.

    Check this MS article. It may provide some help.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Brussels, Brussel, Belgium
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Forcing enable macors to see pages (Word 2000)

    hi,

    this is somewhat cludgy, but it may suit your needs.
    work with two documents.
    1. you protect the actual document with a password on the document level (so they're prompted for a password when they try to open it directly)
    2. created a second document with a protected VBA project that will act as the loader object. the code simply opens the real passwordprotected document. Now if they open with disabled macros, the document they want will not be loaded - they have to enable macros! ofcourse you inform them of this in your loader document.

    ps. if they have a commercially available passwordcracker to crack the vba password, they'll see the document password also and gain access that way to the actual document, but i don't think this should cause any problems in your situation. (this has nothing to do with the question, but as a sidenote : the two document scenario was originally an idea of mine to create a true read only document (yes i still think this is possible) using only word.)

    greetings,

  4. #4
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Forcing enable macors to see pages (Word 2000)

    Jim

    I would put all the content into an autotext entry and leave the file empty. An autoopen macro should then be created which will add the autotext entry to the content.

    This way, the file is empty upon opening but if the user has enabled macros then it will be filled by the macro.

    I thought you had started on a long and torturous path when you started this thread. Now I'm sure <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15> .... I'm standing by for the next installment. <img src=/S/salute.gif border=0 alt=salute width=15 height=20>
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  5. #5
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Forcing enable macors to see pages (Word 2000)

    Well I will have to think about these various suggested options and then continue this installment. A requirement is initially the content and VBA code is placed into a template that a client uses to create a word document from( VBA code is password protected and there is VBA code that looks on the client PC for a license to use the product which of course requires that the macros be enabled). This word document can be sent to a non licensed client. We have code that when it does not find a license then all the client can do is print the document, all other functions are diabled. A licensed user has full Word functons. Again macros must be enabled. Fun huh?

  6. #6
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Forcing enable macors to see pages (Word 2000)

    Jim

    I can't immediately see a real way to achieve that outcome. If there is a way, I would love to know as it would be a great way to protect IP - or at least make it so difficult to pilfer that most offenders will give up.

    The easiest option I could suggest would be that files which are sent to non-registered users must be saved out to Acrobat with protection added there. There will be so many holes in a Word only solution that this option would definately be easier to achieve. This would be easier to enforce if the Word files were encrypted in some way and only machines with your software could decrypt them. This will mean that it is pointless to send the file in its native format to other users. When a registered user of your software wants to send the file for reading/printing purposes only, they should click a button which produces an Acrobat (or other protected format) file which has that protection built in.

    If you have to stay in a Word only solution, I would investigate using an AutoClose macro to put the file contents into a document variable as RTF and replace it with a macrobutton field that asks the user to double click it to see the proper content. This way they will need a macro to run otherwise they don't see the content. You will need the reinstating macro to rebuild the file from RTF and add lots of error catchers. A document variable is the only way I can think of having content that HAS TO have a macro to reveal - and I doubt that even that is impervious to an Open as "Recover Text".

    See - I told you it was going to be hard.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

Posting Permissions

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