Hi, I am trying to write a macro that would take data from one source file (wbS) and put into another file (wbT). The macro I would prefer to keep outside these files, in a separate file.
I tried to search for how to set it up with filepicker but need help getting started.
The source file will hold both the data and the destination sheet and cell (these are always the same) where to put it in the target file.
Like this:
So, pick a file as source (wbS), pick a file as target (wbT), place the number 10 in wbTSheet1!B10, then place 20 in wbTSheet1!C13 and so on.
My thinking is I will first read everything from the source file (continuous range) into an array and then place line by line into the target.
Any pointers?
I tried to search for how to set it up with filepicker but need help getting started.
The source file will hold both the data and the destination sheet and cell (these are always the same) where to put it in the target file.
Like this:
10 | Sheet1!B10 |
20 | Sheet1!C13 |
30 | Sheet1!D22 |
So, pick a file as source (wbS), pick a file as target (wbT), place the number 10 in wbTSheet1!B10, then place 20 in wbTSheet1!C13 and so on.
My thinking is I will first read everything from the source file (continuous range) into an array and then place line by line into the target.
Any pointers?