Did not work hereHey, according to Excel Objects Model just use the Column property of the Range object likeRange("B1").Column
…
But i want the a until z, not Just for b=2, like, a =1, c = 3…Code:x = "b" y = Cells(1, x).Column
Worked! Thanks manI don't know how you grab the textbox contents, so I used a variable x and put a b in it, then to demonstrate the column number code I put the result into a variable y. You need to adapt the code.
It could be
x=textBox1.value
msgbox Cells(1,x).Column
or just:
msgbox Cells(1,textBox1.value).Column