I have written a macro in Excel 2003, Windows XP, that takes a spreadsheet exported from Crystal Reports so that I can add more data from another spreadsheet and perform some calculations.
I have written VBA to do all of this but when I open the exported Excel spreadsheet and launch the macro I get this Update Value message window and have to open the linked Excel file for each reference to it in the VBA. Everything works just fine AFTER you open the file 48 times!!
What can I do so that the user just opens the spreadsheet runs the macro and gets the completed spreadsheet? I have read many posts about using MS Query to get the data from the other spreadsheet but I found that you can't do this on an individual cell basis but for a group of cells only. In other words I can't say that cell E5 & E6 in my exported spreadsheet are equal to cells B2 & C2 in the sheet that I am getting additional data from and then skip and say that cells E8 & E9 are equal to cells D2 & E2.
TIA,
Paul
I have written VBA to do all of this but when I open the exported Excel spreadsheet and launch the macro I get this Update Value message window and have to open the linked Excel file for each reference to it in the VBA. Everything works just fine AFTER you open the file 48 times!!
What can I do so that the user just opens the spreadsheet runs the macro and gets the completed spreadsheet? I have read many posts about using MS Query to get the data from the other spreadsheet but I found that you can't do this on an individual cell basis but for a group of cells only. In other words I can't say that cell E5 & E6 in my exported spreadsheet are equal to cells B2 & C2 in the sheet that I am getting additional data from and then skip and say that cells E8 & E9 are equal to cells D2 & E2.
TIA,
Paul