Click here to Skip to main content
16,005,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Luc Pattyn17-May-10 5:47
sitebuilderLuc Pattyn17-May-10 5:47 
AnswerResolved: Scaling Raw Pixel Data When Reading Into Bitmap Pin
Sonhospa17-May-10 10:59
Sonhospa17-May-10 10:59 
GeneralRe: Resolved: Scaling Raw Pixel Data When Reading Into Bitmap Pin
Luc Pattyn17-May-10 11:44
sitebuilderLuc Pattyn17-May-10 11:44 
QuestionRun-time error Pin
MsmVc16-May-10 19:24
MsmVc16-May-10 19:24 
AnswerRe: Run-time error Pin
Richard MacCutchan16-May-10 21:13
mveRichard MacCutchan16-May-10 21:13 
GeneralRe: Run-time error Pin
MsmVc16-May-10 21:34
MsmVc16-May-10 21:34 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:01
professionalDaveAuld16-May-10 23:01 
GeneralRe: Run-time error Pin
MsmVc16-May-10 23:06
MsmVc16-May-10 23:06 
yes
Please see my full code
Dim xl As New Excel.Application
Dim xlsheet As Excel.Worksheet
Dim xlwbook As Excel.Workbook

Dim ExcelFile As String
Dim ExcelPassword As String
Dim ExcelNword As String
Dim i As Integer


Private Sub Command1_Click()
For i = 1 To 6
 Set xl = CreateObject("Excel.application")
  xl.Visible = False

  

  ExcelFile = "D:\Users\Test\Desktop" + "\test1.xls"
 
  
  On Error GoTo ErrorHandler

ExcelNword = Conversion.CStr(i)
ExcelPassword = "ABC" + ExcelNword
 Set xlBook = xl.Workbooks.Open(FileName:=ExcelFile, _
Password:=ExcelPassword)
ErrorHandler:
   MsgBox Err.Description, , "Error"
   xl.Quit
 Next i
 
    
End Sub

GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:55
professionalDaveAuld16-May-10 23:55 
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 
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 

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.