I have written a code that is able to generate a variable string that matches another variable name. But when I try to use that uppermost variable as cell value it pastes the variable name but not it's value.
So I have something like:
Public General as string
General = 10
and at some point I end up with a variable
dim CurrentValue as string
CurrentValue = General
Where I mean to get that "10" but not "General" when I paste that CurrentValue as cell value, so I wonder if it's possible to do and if so then how could I do that?
"General"(a String that looks like a variable) is not the same asGeneral(a variable that is a String). Your current setup won't work. So use a dictionary with all your current public variables and their corresponding values.