+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] Testing of a workbook is in read only mode

  1. #1
    GLT
    Guest

    [SOLVED] Testing of a workbook is in read only mode

    Hi,

    I have three macros in my workbook however I only want these macros to be
    allowed to run if the workbook is protected by being read-only.

    This would mean if any of the macros run then it would check to see the
    status of the workbook first - could anyone advise how to acheive this?

    Thanks,
    GLT.

  2. #2
    Philip
    Guest

    RE: Testing of a workbook is in read only mode

    Hi,

    the test is:

    if thisworkbook.ReadOnly = true then ...

    OR

    if workbooks(sName).readonly=true

    HTH

    Philip

    "GLT" wrote:

    > Hi,
    >
    > I have three macros in my workbook however I only want these macros to be
    > allowed to run if the workbook is protected by being read-only.
    >
    > This would mean if any of the macros run then it would check to see the
    > status of the workbook first - could anyone advise how to acheive this?
    >
    > Thanks,
    > GLT.


+ 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