+ Reply to Thread
Results 1 to 2 of 2

disable macro for user in read only mode

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    disable macro for user in read only mode

    I have a workbook with 10 different macros. If a user opens the spreadsheet in read only mode, I want to deny access to one of the 10 macros available. If the user trys to run this macro, I just want a simple warning message box saying access denied for this one single macro. Is this possible? Thanks in advance for any comments.
    Last edited by maacmaac; 11-26-2010 at 09:54 AM.

  2. #2
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: disable macro for user in read only mode

    This should do the job when added in the very beginning of the code:
    Please Login or Register  to view this content.
    An example file is never useless!

    Tried an example function of mine and got errors?
    - Had you found them, replace ; with , and , with .

+ 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