**See end of post for solution**
Hello all,
I have a macro that opens excel files and then loops through to copy/paste data to a worksheet called "formdata" (it copies column to column)
Now I have created a series of formulas that allow me to build a table for a set of data (a column of data) belonging to one worksheet. However since I will be opening an arbitrary number of worksheets (could be 1,2,x) I want to build as many tables as the files I open and I want them spaced equally between them.
Here is what I have put together so far:
Summing up:
What I am looking forward to achieve are 2 things.
a) have this procedure done automatically for all the number of columns available in the worksheet called "formdata"
b) space all tables equally between them (they are all of a certain size, 21 rows and 5 columns)
c) The formula only fills in 3 columns while the rest 2 are just text. How can I automate the text input (which is standard again) in the formula?
So far I have hardcoded the process for 10 tables but I need to limit it to however many I open each time. I think that I should do the loop some short of (I will try to explain the structure):
Is this the correct idea?
All ideas welcome!
Cheers,
kostas
---Solution---
many thanks to Rylo for coming up with the following code
You will find the necessary workbook attached in one of the following posts.
Regards,
kostas
Bookmarks