Convert an Excel Column Number Into its String Equivalent

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
Use this function to convert integer column numbers to its equivalent name as a string, ie, 0 - A, 27 - AA and so on. I've tested until ZZZZ, 475253, but I'm sure it works with any integer number.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: