|
Visual Basic (VB and VBA) |
|
Copyright 1999-2001 Christopher Greaves. All rights reserved. Home Page and email to [email protected] |
| If in doubt, record a macro and inspect the entrails! |
Please read the DISCLAIMER.
Here is an INDEX to all the procedures.
You will probably need one copy of my GLOBAL DECLARATIONS.
Public Function boolTestLocked(doc As Document)
''' The VBComponents collection of the project being cleaned.
Dim mcmpComponents As VBComponents ''' These must be declared at the module-level so they can be
On Error Resume Next
Set mcmpComponents = Nothing
Set mcmpComponents = doc.VBProject.VBComponents
''' If true, the project was protected.
If mcmpComponents Is Nothing Then
boolTestLocked = True
Else
boolTestLocked = False
End If
'Sub TESTboolTestLocked()
'MsgBox boolTestLocked
'End Sub
End Function
| We all knew nothing when we started … |
|
Home Page and Contact Information Send email to [email protected]. This page was last updated Thursday, November 15, 2001 |