The code you would use depends on what you are doing to locate the column.
For example, if you have the column number, you could do this...
ColNum = 4
ColLetter = Split(Columns(ColNum).Address(0,0),":")(0)
If you have a cell reference that is in that column, then you could do
this...
ColLetter = Split(CellReference.Address(1, 0), "$")(0)
There are lots of possibilities depending on what you are doing... can you
show us the code you have so we can give you a specific answer.
--
Rick (MVP - Excel)
"dstiefe" <(E-Mail Removed)> wrote in message
news:BD11E212-5297-4B0D-9C4B-(E-Mail Removed)...
>I am writing the VBA code that is telling me what column a certain piece of
> data is in...but instead of giving me the number of the column...is there
> someway through VBA that it i can get the letter reference.
|