I was converted some VBA code in Excel to ASP.NET using Visual Basic. The original cost had some On…GoSub and On…Goto statements. I did some research since I already know GoSub statements don’t work any more. I found the “On” statement causes a branch to either a line in a GoSub or Goto statement. The article mentioned that a better solution was a Select Case statement so I converted the code.
Resources