+ Reply to Thread
Results 1 to 4 of 4

Protection property of the VBA project

  1. #1
    Forum Contributor
    Join Date
    03-09-2004
    Posts
    140

    Protection property of the VBA project

    Hi there

    Is there a vba code to check the Protection property of the VBA project in a an Excel File ?.

    So that a MsgBox tells me that the VBAProject is protected
    Yours
    hesham Almakki
    http://www.almakki.com.ly/

  2. #2
    Jim Rech
    Guest

    Re: Protection property of the VBA project

    MsgBox Workbooks("Book1.xls").VBProject.Protection = vbext_pp_locked

    returns true if the project is locked.

    --
    Jim
    "helmekki" <[email protected]> wrote in
    message news:[email protected]...
    |
    | Hi there
    |
    | Is there a vba code to check the Protection property of the VBA project
    | in a an Excel File ?.
    |
    | So that a MsgBox tells me that the VBAProject is protected
    |
    |
    | --
    | helmekki
    |
    |
    | ------------------------------------------------------------------------
    | helmekki's Profile:
    http://www.excelforum.com/member.php...fo&userid=6939
    | View this thread: http://www.excelforum.com/showthread...hreadid=394181
    |



  3. #3
    Jim Rech
    Guest

    Re: Protection property of the VBA project

    Use a 1 in place of vbext_pp_locked if you do not have a reference set to VB
    extensibility.

    --
    Jim
    "helmekki" <[email protected]> wrote in
    message news:[email protected]...
    |
    | Hi there
    |
    | Is there a vba code to check the Protection property of the VBA project
    | in a an Excel File ?.
    |
    | So that a MsgBox tells me that the VBAProject is protected
    |
    |
    | --
    | helmekki
    |
    |
    | ------------------------------------------------------------------------
    | helmekki's Profile:
    http://www.excelforum.com/member.php...fo&userid=6939
    | View this thread: http://www.excelforum.com/showthread...hreadid=394181
    |



  4. #4
    Forum Contributor
    Join Date
    03-09-2004
    Posts
    140
    It greatly worked fine

    Thank u very much indeed

+ 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