Hi All
I have recorded a macro that gets data from 1 cell in INV001.xlsx (Excel 2013), and copies it to cell J5 in Summary.xlsm.This works, So I copied it and edited the copied part to get the same cell in INV002.xlsx and copy it to cell J6 in Summary.xlsm. It works.
My problem is: I never know how many INV***.xlsx files there will be, and if I, in my primitive way, want to provide for 60 INV***.xlsx files, the macro simply gets too long. I have a macro that lists all my INV***.xlsx files which it gets from the correct folder. I know how to code the FOR...NEXT procedure to loop thru the macro as many times as there are INV***.xlsx files, but I do not know how to reference the cells to which the data must be copied to (J5, J6, J7, etc) in a format similar to .cells(X.Y) (which I think my solution might be)
Any suggestions?
Bookmarks