S
sarasta
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
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