I am trying to take information from an Access Database, put it into an array, open up Excel and put the data into Excel. I have no problem putting the Access data into the array. I would like to use the Workbook_Open procedure to then look at the array made by Access and step through the array and put the data into cells (i.e. Cells(1,1).Value = Array(1,1).Value...using short code to get the point across).
The problem that I am having is allowing Excel access to the array. Should I try making it a global array in the form or module in Access or will I have to pass it as a parameter? Is this the best way to go about passing data from Access to Excel...note: I have an existing Access table that I am pulling data from and an existing Excel file that I am trying to open because it is already formatted with labels that I want used, though doing the labels in runtime wouldn't be a problem if I had to make a new file each time I tried passing the data. Any help in this matter would be much appreciated...sorry for the book long explanation.
Brian
The problem that I am having is allowing Excel access to the array. Should I try making it a global array in the form or module in Access or will I have to pass it as a parameter? Is this the best way to go about passing data from Access to Excel...note: I have an existing Access table that I am pulling data from and an existing Excel file that I am trying to open because it is already formatted with labels that I want used, though doing the labels in runtime wouldn't be a problem if I had to make a new file each time I tried passing the data. Any help in this matter would be much appreciated...sorry for the book long explanation.
Brian