Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have an Excel VBA app in which an open VBA workbook opens via automation another Workbook and copies into it some worksheets from it per below: For ndx = 3 To Workbooks("Quotes.xls").Worksheets.Count Workbooks("Quotes.xls").Activate Workbooks("Quotes.xls").Worksheets(ndx).Copy After:=Workbooks(strFileNm).Worksheets(Workbooks(s trFileNm).Worksheets.Count Next ndx The code for both books is password protected and previously there was no problem copying the worksheets from the first into the latter. But now when the above code is performed, the prompt to enter the VBA Project password to unlock the code comes up, which it didn't do before. Any ideas what may have caused the change? I don't use this routine a lot but the app was originally functioning under Office 2000, and now is under Office/Excel 2003-did something change in the 2003? Thanks, God bless Van |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't see anything in your code that would do this.
Maybe it's not excel. There was a problem a few months ago with google desktop. IIRC, it would try to index the project while the workbook was open and cause the password to the project to pop up. Do you have any of those type programs running? (MSN has a version, too.) (That was a complete guess, though.) If that doesn't work, I'd try disabling the antivirus software--an even more complete guess! VanS wrote: Hello, I have an Excel VBA app in which an open VBA workbook opens via automation another Workbook and copies into it some worksheets from it per below: For ndx = 3 To Workbooks("Quotes.xls").Worksheets.Count Workbooks("Quotes.xls").Activate Workbooks("Quotes.xls").Worksheets(ndx).Copy After:=Workbooks(strFileNm).Worksheets(Workbooks(s trFileNm).Worksheets.Count Next ndx The code for both books is password protected and previously there was no problem copying the worksheets from the first into the latter. But now when the above code is performed, the prompt to enter the VBA Project password to unlock the code comes up, which it didn't do before. Any ideas what may have caused the change? I don't use this routine a lot but the app was originally functioning under Office 2000, and now is under Office/Excel 2003-did something change in the 2003? Thanks, God bless Van -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave,
Thanks for your reply.I don't have the Google app. But I tried something and it worked for some reason I don't fully understand. Thanks again, God bless Van S. Mabrito "Dave Peterson" wrote: I don't see anything in your code that would do this. Maybe it's not excel. There was a problem a few months ago with google desktop. IIRC, it would try to index the project while the workbook was open and cause the password to the project to pop up. Do you have any of those type programs running? (MSN has a version, too.) (That was a complete guess, though.) If that doesn't work, I'd try disabling the antivirus software--an even more complete guess! VanS wrote: Hello, I have an Excel VBA app in which an open VBA workbook opens via automation another Workbook and copies into it some worksheets from it per below: For ndx = 3 To Workbooks("Quotes.xls").Worksheets.Count Workbooks("Quotes.xls").Activate Workbooks("Quotes.xls").Worksheets(ndx).Copy After:=Workbooks(strFileNm).Worksheets(Workbooks(s trFileNm).Worksheets.Count Next ndx The code for both books is password protected and previously there was no problem copying the worksheets from the first into the latter. But now when the above code is performed, the prompt to enter the VBA Project password to unlock the code comes up, which it didn't do before. Any ideas what may have caused the change? I don't use this routine a lot but the app was originally functioning under Office 2000, and now is under Office/Excel 2003-did something change in the 2003? Thanks, God bless Van -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Consuming a web service in Excel 2003 that requires a certificate | Excel Programming | |||
How do I get external web data that requires a password? | Excel Programming | |||
display data from a website in excel that requires a username/password | Excel Programming | |||
Need code that requires password every 120 days | Excel Programming | |||
How to record a New Web Query that requires login + password. | Excel Programming |