View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default c.column returns a number - I need an "A" or "B" or...

There's probably an easier way, but it's not clear what you're doing
downstream. This quick and dirty formula gives you the column letter:

name_of_column = split(c.address,"$")(1)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"HH" wrote in message
...
Hi'

I write:

top_of_area = 2

for each c in range("C9:L9")
name_of_column = c.column 'HERE I NEED AN ALFABET ANSWER NOT NUMBER
row_number = c.row -1
c.value = "=sum(" & name_of_column & top_of_area & name_of_column &
row_number & ")"
next


This only gives me the number which I cant use when I'm trying to make
at "=sum..." in the cell for later work.

Is there an easyer way?

...or just a working way? :)