Consulting

Results 1 to 4 of 4

Thread: Prevent WB Open if Macros 'Disabled'

  1. #1
    VBAX Regular Trombre's Avatar
    Joined
    Apr 2008
    Location
    Orlando, FL
    Posts
    6
    Location

    Prevent WB Open if Macros 'Disabled'

    Does anyone know of a way to prevent a user from opening a workbook if they disable macros?

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Check out the KB for some suggestions.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Site Admin VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,005
    Location
    Trombre, it is not possible to stop them opening the workbook if macro's aren't enabled but it is possible to prevent functionality and force a blank page to be displayed. Look at this Kb item
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  4. #4
    VBAX Regular Trombre's Avatar
    Joined
    Apr 2008
    Location
    Orlando, FL
    Posts
    6
    Location
    Is the suggested code xL 5.0 compatible?

Posting Permissions

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