Hello!
About a year ago I started writing a macro. Because of my coding nubiness, I used a lot of GOTO commands. Over the year, my macro has grown to be quite large and I have learned the errors of my ways. I am in the process of rewriting the code to remove GOTO from my code.
As I rewrite this long macro into functions and subroutines, I still need to use some GOTO commands to connect to old code bits. I made a function called "DetectReport" that returns the GOTO label name. Can I use GOTO with a variable?
Like I will have a variable (strReportName) that could have the values "REPORT1" or "REPORT2" or "REPORT3"
And in my code I will have some labels that look like:
I want to do a GOTO strReportName
Thank you!
Bookmarks