I am working on a project that is pulling a bunch of spilled data across a ton of sheets that are all in the same spot as the sheets are based off of a template.
Using the name manager I was able to create a function to evaluate an automatically forming text join to create a VSTACK formula with the spilled data from all of the sheets.
When copy/pasting the text from this text join, and calculating it normally, it has everything working, which means it’s not a problem with the calculation. But having this many different variables is causing the =Eval(my name manager formula for =EVALUATE(x)) to not work. After investigation I found that Name Manager formula's have a character limit of around 250, so I had created a UDF Formula using this code.
Public Function eval(ByVal str As String) As Variant
eval = Application.Evaluate(str)
End Function
Although UDFs are supposed to calculate up to around 8000 characters, it still couldn t calculate my text join(around 4000 characters). Is there a way to make this work or have a version of evaluate that can process more? VBA solutions are absolutely on the table, let me know.
example of the text that is trying to be evaluated:
=VSTACK(Sheet1!A1#:Sheet1!G1#, Sheet2!A1#:Sheet2!G1#, Sheet3!A1#:Sheet3!G1#,etc…)
Also I have done a good amount of experimenting but for some reason excel wont let me do something like =VSTACK(Sheet95:Sheet100!A1#:G1#). Any feedback on why would be great as this would be a far simpler solution to the issues I'm facing.