+ Reply to Thread
Results 1 to 3 of 3

Don't open file if no response to enable macros

  1. #1

    Don't open file if no response to enable macros

    Hi
    If someone opens an Excel file containing macros, I would like the file
    to remain closed if they choose not to enable macros. A message like
    "This worksheet must be opened with macros enabled. The file will now
    close" would be nice.
    Can any event capture the "enable macro" message box?

    cheers
    Paul


  2. #2
    DM Unseen
    Guest

    Re: Don't open file if no response to enable macros

    Paul,

    what you want cannot be done, because the macro warning should protect
    against virusses. If it was possible, they would be the first to use
    this feature

    What *is* possible is the following setup:

    Have 1 sheet visible containing the text " Enable Macro's". All other
    sheets should be set to "very Hidden"

    On opening the spreadsseet your open macro should hide the visible
    sheet and show the hidden sheet(s). Users can still open your file, but
    it is of little use to them unless macro's are enabled.

    Another option is to sign your VBA project digitally, this will allow
    execution of the VBA code regardless of security settings.

    DM Unseen


  3. #3

    Re: Don't open file if no response to enable macros

    Please don'r reply- I searched on it in this group.
    regards
    Paul


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1