How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel.
Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc.
In perl, for an input of 1 (A), 27 (AA), etc.
I'm using this one in VB.NET 2003 and it works well...
..And converted to php:
I wanted to throw in my static class I use, for interoping between col index and col Label. I use a modified accepted answer for my ColumnLabel Method
Use this like...
Here is an Actionscript version:
A little late to the game, but here's the code I use (in C#):