Consulting

Results 1 to 3 of 3

Thread: Recognizing column name

  1. #1

    Recognizing column name

    i want vba code to know on which column my cell is active

    i.e. whether it is on colomn A or XYZ.

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    This will do it...

    Dim a as String
    a = ActiveCell.Address
    MsgBox Left(Right(a, Len(a) - 1), InStr(Right(a, Len(a) - 1), "$") - 1)
    K :-)

  3. #3
    its good,

    thanku killian...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •