Hi,
I'm trying to consolidate from multiple files into a different file, but I'm having some trouble. Here is a simplified example of what I want;
File1.xlsx
Col1 Col2 Col3
111a 111b 111c
222a 222b 222c
File2.xlsx
Col1 Col2 Col3
666a 666b 666c
777a 777b 777c
888a 888b 888c
Summary file
Col1 Col2 Col3
111a 111b 111c
222a 222b 222c
666a 666b 666c
777a 777b 777c
888a 888b 888c
Seems easy enough and I've read on linked files and consolidation, but from what I can see this works on a fixed row/col count. I want to be able to add data (i.e. more rows) to the children files and by only opening the parent (summary) file have the new data present.
I've seen some different examples that are somewhat similar with VB script and I was hoping someone could offer some code that met these needs?
In the real example I don't have any file name consistency (i.e. numeric succession), but could list them on the summary file as there won't be that many and it will be rare another is added. I'd imagine the following;
[insert horrible pseudo code]
Read number of files from Sheet Files:A1
Read names of each file from A2:Ax
row offset = 0
for each file {
read how many rows contain data
read how many cols contain data
write data to row offset on Sheet 'Summary'
row offset = row offset + rows
}
I've read some implementations require that all files (parent and children) have to be open for this to work, but I'd like to avoid this if possible. Multiple people are going to be reading the summary file so if it is possible without having them install any add-ins this would be desirable.
If someone can help i would be greatly appreciated which would save me learning to write VB syntax for the rest of the night.
Kind Regards, Paul.
I'm trying to consolidate from multiple files into a different file, but I'm having some trouble. Here is a simplified example of what I want;
File1.xlsx
Col1 Col2 Col3
111a 111b 111c
222a 222b 222c
File2.xlsx
Col1 Col2 Col3
666a 666b 666c
777a 777b 777c
888a 888b 888c
Summary file
Col1 Col2 Col3
111a 111b 111c
222a 222b 222c
666a 666b 666c
777a 777b 777c
888a 888b 888c
Seems easy enough and I've read on linked files and consolidation, but from what I can see this works on a fixed row/col count. I want to be able to add data (i.e. more rows) to the children files and by only opening the parent (summary) file have the new data present.
I've seen some different examples that are somewhat similar with VB script and I was hoping someone could offer some code that met these needs?
In the real example I don't have any file name consistency (i.e. numeric succession), but could list them on the summary file as there won't be that many and it will be rare another is added. I'd imagine the following;
[insert horrible pseudo code]
Read number of files from Sheet Files:A1
Read names of each file from A2:Ax
row offset = 0
for each file {
read how many rows contain data
read how many cols contain data
write data to row offset on Sheet 'Summary'
row offset = row offset + rows
}
I've read some implementations require that all files (parent and children) have to be open for this to work, but I'd like to avoid this if possible. Multiple people are going to be reading the summary file so if it is possible without having them install any add-ins this would be desirable.
If someone can help i would be greatly appreciated which would save me learning to write VB syntax for the rest of the night.
Kind Regards, Paul.