+ Reply to Thread
Results 1 to 6 of 6

Column ref - quick question

  1. #1
    Registered User
    Join Date
    06-06-2007
    Location
    NYC, NY
    Posts
    66

    Column ref - quick question

    If I have

    Please Login or Register  to view this content.
    I don't think it works. do I have to do target.address then get the column? Ugh this should be easy...

    I want if the target cell is in the 15th column then...

    ~RUTH~
    Last edited by VBA Noob; 03-07-2008 at 03:08 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Are you using a event macro.

    See if this example helps.

    Please Login or Register  to view this content.
    When you select Col O it triggers the message box

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-06-2007
    Location
    NYC, NY
    Posts
    66

    Unhappy Does that work?

    I don't think this works.

    Please Login or Register  to view this content.
    That is my question.

    But yes it is an event when any cell is changed in column 15. Not if the entire column changes.

    Thanks,
    ~RUTH~

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    It did for me.

    Did you try my code ??

    VBA Noob

  5. #5
    Registered User
    Join Date
    06-06-2007
    Location
    NYC, NY
    Posts
    66

    My counting needs work

    So column P (=16) is what I was really after not O. I need to learn how to count better :-)

    Thanks for your help,
    ~RUTH~

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem.

    It's the easy one's that cause the biggest problems

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1