Hi guys!
So, I've got this piece of code, which is working:
It simply copies A1 from one file to A1 of the other file, but with explicitly referencing the path (which is exactly what I need). However, as I have to do this step for many files, I would like to somehow substitute the exact path of the file and the sheet name lol.xlsx]korr with a variable.
I have been sitting on this problem for the entire day now, trying out unsuccessfully all sorts of different possibilities.
I would be very grateful if someone could help me out with some advice!
Regards,
Andreas
So, I've got this piece of code, which is working:
VBA Code:
ws.Range("A$" & rowCount & ":" & "AX1").FormulaR1C1 = "=[lol.xlsx]korr!RC"
It simply copies A1 from one file to A1 of the other file, but with explicitly referencing the path (which is exactly what I need). However, as I have to do this step for many files, I would like to somehow substitute the exact path of the file and the sheet name lol.xlsx]korr with a variable.
I have been sitting on this problem for the entire day now, trying out unsuccessfully all sorts of different possibilities.
I would be very grateful if someone could help me out with some advice!
Regards,
Andreas