Click here to Skip to main content
15,915,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Run-time error Pin
MsmVc16-May-10 23:57
MsmVc16-May-10 23:57 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:59
professionalDaveAuld16-May-10 23:59 
GeneralRe: Run-time error Pin
MsmVc17-May-10 0:10
MsmVc17-May-10 0:10 
GeneralRe: Run-time error [modified] Pin
DaveAuld17-May-10 0:43
professionalDaveAuld17-May-10 0:43 
GeneralRe: Run-time error Pin
MsmVc18-May-10 22:15
MsmVc18-May-10 22:15 
GeneralRe: Run-time error Pin
DaveAuld18-May-10 22:54
professionalDaveAuld18-May-10 22:54 
AnswerRe: Run-time error Pin
Sonhospa16-May-10 23:57
Sonhospa16-May-10 23:57 
AnswerRe: Run-time error Pin
William Winner17-May-10 8:10
William Winner17-May-10 8:10 
I'd say the problem in this code is that you don't increment the name of the file. You set it to "D:\Users\Test\Desktop" + "\test1.xls"

So, it would work the first time, but on the second iteration, it would be comparing the password for workbook 2 with workbook 1.

Did you mean to write:
VB
ExcelFile = "D:\Users\Test\Desktop\test" & i &".xls"

GeneralRe: Run-time error Pin
DaveAuld18-May-10 22:54
professionalDaveAuld18-May-10 22:54 
GeneralRe: Run-time error Pin
William Winner19-May-10 4:45
William Winner19-May-10 4:45 
GeneralRe: Run-time error Pin
DaveAuld19-May-10 4:48
professionalDaveAuld19-May-10 4:48 
QuestionVB.Net Firebird ADO Pin
FrankPacher16-May-10 12:23
FrankPacher16-May-10 12:23 
AnswerRe: VB.Net Firebird ADO Pin
Dalek Dave16-May-10 13:07
professionalDalek Dave16-May-10 13:07 
AnswerRe: VB.Net Firebird ADO Pin
Simon_Whale16-May-10 22:13
Simon_Whale16-May-10 22:13 
Questionhow to find text in excel with vb.net? Pin
sanyexian15-May-10 21:42
sanyexian15-May-10 21:42 
AnswerRe: how to find text in excel with vb.net? Pin
dan!sh 16-May-10 0:24
professional dan!sh 16-May-10 0:24 
GeneralRe: how to find text in excel with vb.net? Pin
Dalek Dave16-May-10 1:42
professionalDalek Dave16-May-10 1:42 
Questionshape drawing and coordinations Pin
tuolesi15-May-10 5:12
tuolesi15-May-10 5:12 
AnswerRe: shape drawing and coordinations Pin
DaveAuld15-May-10 5:31
professionalDaveAuld15-May-10 5:31 
GeneralRe: shape drawing and coordinations Pin
tuolesi15-May-10 6:37
tuolesi15-May-10 6:37 
GeneralRe: shape drawing and coordinations Pin
DaveAuld15-May-10 6:42
professionalDaveAuld15-May-10 6:42 
GeneralRe: shape drawing and coordinations Pin
tuolesi15-May-10 7:03
tuolesi15-May-10 7:03 
GeneralRe: shape drawing and coordinations Pin
tuolesi17-May-10 5:25
tuolesi17-May-10 5:25 
AnswerRe: shape drawing and coordinations Pin
Luc Pattyn15-May-10 6:39
sitebuilderLuc Pattyn15-May-10 6:39 
QuestionAxDtPicker problems oleDate is invalid [modified] Pin
QuickBooksDev15-May-10 4:20
QuickBooksDev15-May-10 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.