Dim colVar As Integer
Dim noOfCols As Integer
Dim colChars As String
Dim cellAdd As String
colChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
'This piece of code holds good
'for Columns upto 26 only
'Because beyond that the col names will
'be AA, AB, AC,...
'Then u may have to create and array
'using a loop to store the column names
noOfCols = 10
For colVar = 1 To noOfCols
cellAdd = Mid(colChars, colVar, 1) & 1
Range(cellAdd).Value = noOfCols - colVar + 1
Next colVar
Hope this solves ur problem.
Regards
Shaik Akthar