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!

Excel asking users for VBAProject Password

Status
Not open for further replies.

bdbBear

Programmer
Apr 29, 2005
54
US
I have an .xls file (winXP, XL03) that has the code password protected using the VBAProject password.

Some of the users get asked for the password even though they are not going into the IDE. Sometimes it pops up after they have closed out the file.

Anyone have any idea about this?

Thanks.
 
See this thread: thread707-1168986
(and the linked thread it contains)

Regards,
Mike
 
Thanks.

Though I don't have any add-ins.

I am querying data from a second .xls file using ADODB. Could that be a cause?

Code:
    Dim cn As ADODB.Connection
    Set cn = New ADODB.Connection
    
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset

    With cn
        .Provider = "Microsoft.Jet.OLEDB.4.0"
        .Properties("Extended Properties").Value = "Excel 8.0"
        .Open namePath & nameFile
    End With

    rs.Open q, cn, adOpenStatic
    
    ' ... code for using data in recordset rs goes here.

    rs.Close
    Set rs = Nothing
    
    cn.Close
    Set cn = Nothing
 
Using ADO is not the cause. As I mentioned in the other thread, there are apparently cases that cannot be attributed to Google Toolbar and are without resolution. I was hopeful that wasn't the case for you, given that it was occurring for some of your users but not others.

I don't have any other bright ideas at this time [ponder]


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top