Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd appreciate very much if anyone could explain me this mystique :
Under xl2000 I've written such a code : '------------------------------------------------------------------ Dim file_name as Variant file_name = array("c:\first.xls","c:\second.xls") Do Until i N Workbooks.OpenText Filename:=file_name(i), Origin:= _ xlWindows,... (other parameters) i = i +1 Loop '-------------------------------------------------------------------------- So, under xl2000 it works fine, but under xl2002 the open method fail because of parameter Filename doesn't understand an array element. If change parameter's Filename value to Filename := "c:\first.xls" i works fine under xl2002. Please, if someone knows how to solve this problem, help me. I' appreciate your help very much -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I NEED HELP TO UNDERSTAND THIS MACRO!!! | Excel Discussion (Misc queries) | |||
HOW TO COPY XL2000 (XP) MACROS TO XL2002 (XP) | Excel Discussion (Misc queries) | |||
Can not open .wb1 file with XL2000 and XL2002 | Excel Discussion (Misc queries) | |||
Pivot Table Macro to run in XL2000 | Excel Programming | |||
Macro works fine in xl2002 but does not in xl 2000 | Excel Programming |