Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Would like to know the correct statement that make the following VB works
Sub import01() Dim hfile(1 To 8), i As Integer hfile1 = "T:\Abc\Consolid\htmPL\PLY.HTM" hfile2 = "T:\Abc\Consolid\htmPL\PLB.HTM" hfile3 = "T:\Abc\Consolid\htmPL\PLL.HTM" hfile4 = "T:\Abc\Consolid\htmPL\PLPP.HTM" hfile5 = "T:\Abc\Consolid\htmPL\PLR.HTM" hfile6 = "T:\Abc\Consolid\htmPL\PLT.HTM" hfile7 = "T:\Abc\Consolid\htmPL\PLSMHK.HTM" hfile8 = "T:\Abc\Consolid\htmPL\PLSMH.HTM" For i = 1 To 8 Workbooks.Open Filename:=hfile(i) ... vb code ... vb code ... vb code Next End sub -- aw |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
run time error 1004 general odbc error excel 2003 vba | Excel Programming | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |