Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to avoid password dialog when adding reference to a lock workbook 1

Status
Not open for further replies.

JRodrigues

Programmer
Mar 12, 2002
4
PT
Hi list,

when i add a reference to a Workbook with VBproject lock the password dialog box pop's up. Even i press Cancel the reference is add and the program still run....

code...


Dim JJ
Application.Cursor = xlWait
Application.ScreenUpdating = False
Application.DisplayAlerts = False
ActiveWorkbook.VBProject.References.AddFromFile ("JOB1.XLS")
Set JJ = ActiveWorkbook.VBProject.References.Item(ActiveWorkbook. _
VBProject .References.Count)

TIA

JR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top