View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_504_] Leith Ross[_504_] is offline
external usenet poster
 
Posts: 1
Default Check VBAproject is protected or not


Hello Hesham,

If you have another Workbook open along with your project then the
answer is yes. You must add a reference to the VBA Extensibility
Library for this code to work.

Answer = VBAProject("Project Name").Protected

If Answer is yes, the project is protected.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=505910