excel vba get column name from number
'For column number 256...
ColName = Split(Cells(, 256).Address, "$")(1)
excel vba get column name from number
'For column number 256...
ColName = Split(Cells(, 256).Address, "$")(1)
c# get excel column number from letter
public static int ColumnNameToIndex(string name)
{
var upperCaseName = name.ToUpper();
var number = 0;
var pow = 1;
for (var i = upperCaseName.Length - 1; i >= 0; i--)
{
number += (upperCaseName[i] - 'A' + 1) * pow;
pow *= 26;
}
return number;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us