hmmm ... so you did not see the first worksheet of TestOpenWithPassword.xls while Excel was prompting you for the password?
OMG ... I got myself so wrapped up in code I did not realize what was really happening ... my utility asks twice for a workbook path (we are doing comparisons) and what was really happening was that the first workbook did not have a password so it opened (xlApp was not visible) and when it was opening the second one which did have a password, when xlApp did become visible I was seeing the first workbook in the background ... my two sample workbooks look very similar ... sheesh ... now i can remove all the extra code I just finished that passes a nullstring password and if it fails I was prompting for the pasword via a user form ... sigh ... at least it will be easy to rip all that out :-)
Thanks for the sanity check that proved I am ... well a little nutso as I just got back from vacation.
Steve
Main Topics
Browse All Topics





by: zorvekPosted on 2008-03-31 at 12:38:47ID: 21248403
I tried this test on Excel 2003 SP3 and did not see an extra workbook:
estOpenWit hPassword. xls", False, True)
Public Sub Test()
Dim xlApp As Excel.Application
Dim wb As Workbook
Set xlApp = New Excel.Application
Set wb = xlApp.Workbooks.Open("C:\T
End Sub
Kevin