Hi all,
I am looking for a VBA code that will allow me to concatenate text from across multiple worksheets. To give some background, I have a survey on an excel worksheet that I send out for team members to complete. I then have a results workbook which contains VBA code to pull all the surveys in and a results worksheet which tallys up all the responses. It all works great for calculating scores, however, I also ask for comments and there are some open questions. My plan is collect up all the written responses with a comma between them.
I started off with a long formula in each of the cells, see below, which worked for a set number of 20 results with known worksheet names.
=CONCATENATE('Survey Results 1'!L24,",",'Survey Results 2'!L24,",",'Survey Results 3'!L24,",",'Survey Results 4'!L24,",",'Survey Results 5'!L24,",",'Survey Results 6'!L24,",",'Survey Results 7'!L24,",",'Survey Results 8'!L24,",",'Survey Results 9'!L24,",",'Survey Results 10'!L24,",",'Survey Results 11'!L24,",",'Survey Results 12'!L24,",",'Survey Results 13'!L24,",",'Survey Results 14'!L24,",",'Survey Results 15'!L24,",",'Survey Results 16'!L24,",",'Survey Results 17'!L24,",",#REF!,",",'Survey Results 19'!L24,",",'Survey Results 20'!L24,"")
I have now created a dynamic Index List on a sheet called Key which updates based on the names of the worksheets. I am thinking some kind of code which will use the Worksheets from the Index List and pull all data from a specific cell, for the above example cell L24 and will concatenate it into a specified cell.
Is this possible?
Thanks,
Adam
Bookmarks