B
bcmiller
I am writing code to consolidate values from several workbooks. Eac
workbook is set-up identically. Initially, I open each workbook from
user defined list. I then make a function call to grab certain value
from each workbook and add them to various totals. At the moment, whe
the code tries to activate a workbook in the passed array, it goe
nuts, exits the functions and continues with the code in the sub fro
which the function was called. I am passing the workbook array as
paramarray of type variant. Has anyone had similar problems and know
how to fix this???
Cheers
BC
---- Code Sample ----
Call Sum_Details(NumberOfFiles, FileWorkbooks())
Function Sum_Details(NumberOfFiles As Integer, ParamArra
FileWorkbooks() As Variant)
....
For i = 1 To NumberOfFiles
FileWorkbooks(i).Activate
......
End Function
---- Code Sample ---
workbook is set-up identically. Initially, I open each workbook from
user defined list. I then make a function call to grab certain value
from each workbook and add them to various totals. At the moment, whe
the code tries to activate a workbook in the passed array, it goe
nuts, exits the functions and continues with the code in the sub fro
which the function was called. I am passing the workbook array as
paramarray of type variant. Has anyone had similar problems and know
how to fix this???
Cheers
BC
---- Code Sample ----
Call Sum_Details(NumberOfFiles, FileWorkbooks())
Function Sum_Details(NumberOfFiles As Integer, ParamArra
FileWorkbooks() As Variant)
....
For i = 1 To NumberOfFiles
FileWorkbooks(i).Activate
......
End Function
---- Code Sample ---