LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Loading Add-ins to a Protected Project

I have some VB code in Excel that is used to search for and load
particular add-ins that may be present in the current directory. All
was working fine until time came to password protect the original
project (that loads the add-ins).

Now the line:

Application.VBE.ActiveVBProject.References.AddFrom File "filename"

causes the user to be prompted for the VB project password. The code
continues to execute past this point without problems regardless of
whether the password is entered OR if the user just hits cancel.

So, question is how to stop the needless VB password prompt?

Any suggestions appreciated.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
protected project ana Excel Discussion (Misc queries) 0 September 14th 07 01:04 AM
Excell error "Can't find Project or Library" Project VBAProject Lost in Excel Excel Worksheet Functions 0 April 12th 07 04:42 PM
How to convert MS Project to MS Excel. I don't have MS Project. Jane Excel Discussion (Misc queries) 1 February 20th 06 10:01 PM
VBA project is protected Ltat42a Excel Discussion (Misc queries) 0 February 5th 06 08:32 PM
Password protected VBA project Tomasz Klim New Users to Excel 1 October 12th 05 06:02 PM


All times are GMT +1. The time now is 08:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"