Hello,
I just began coding using VBA and I am way too much into it right now. This is my first post so I hope I'm in the right place.
I have a table that looks something like this (just much, much larger):
Table2.PNG
I need each cell in the last column (Unique Part ID) to combine values of all the cells on the same row except for the cells in the first column (ID).
In other words, it is like function CONCATENATE (). However, I do not want the code to use actual references (as it would if I were to record a macro of myself entering the function). Also, the number of Part columns can change, so I need this code to be dynamic. The only thing we know for sure is that all Part columns will be between the ID column and Unique Part ID column.
The end result would look like the image below:
Table1.PNG
I hope you guys are able to assist me. Excel 2016 has a function called CONCAT. With this function, you are able to select a range of cells e.g.and it would use each cell in the range as an individual entity while joining strings together. However, this code I'm writing is for MS Excel 2013Formula:
Please Login or Register to view this content.
P.S. If you are able to assist by writing a function, would you be able to also include instructions on how the module I am working on can call on that function? I know how to call out each Sub (), but for some reason having issues calling out my functions that I create code for.
Thank you guys very much!!
Bookmarks