+ Reply to Thread
Results 1 to 2 of 2

Enabling macros for my workbook

  1. #1
    Maddoktor
    Guest

    Enabling macros for my workbook

    Is it possible to not open a workbook (either through Excel or
    double-clicking the file in explorer) if macros are automatically
    disabled or the user decides not to enable the macros?

    If so, I would like for it then to display a msgbox informing the user
    that macros must be enabled to view or edit the workbook.

    Thanx in advance.

  2. #2
    Bob Phillips
    Guest

    Re: Enabling macros for my workbook

    The standard way to approach this is as follows.
    - create a worksheet with a message on it explaining that for this workbook
    to
    run it needs macros enabled, maybe even a few screenshots
    - hide all other worksheets
    - add some code in the Workbook_Open event that unhides the other sheets,
    but hides that sheet.


    What happens is that if they do not enable macros, they will only see the
    warning sheet, telling them how to do it. If they enable macros, it will
    startup as the workbook it should be.


    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Maddoktor" <maddoktor@clinic.com> wrote in message
    news:OYabqxgOGHA.208@tk2msftngp13.phx.gbl...
    > Is it possible to not open a workbook (either through Excel or
    > double-clicking the file in explorer) if macros are automatically
    > disabled or the user decides not to enable the macros?
    >
    > If so, I would like for it then to display a msgbox informing the user
    > that macros must be enabled to view or edit the workbook.
    >
    > Thanx in advance.




+ 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