+ Reply to Thread
Results 1 to 2 of 2

Target.Column problems

  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    Bath, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Target.Column problems

    Im having some trouble with Target.Column / Target.Row syntax.

    The code below is a snippet of a conditional formatting problem that I posted about yesterday. I have been working on it since but cant seem to get it too work.

    When the if statements read:

    Please Login or Register  to view this content.
    rather than
    Please Login or Register  to view this content.
    They work, but obviously this is only relevant for column O.

    Any idea what I'm doing wrong??


    Please Login or Register  to view this content.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Target.Column problems

    Target.Column will return the number of the column so assuming Target was in P:

    Please Login or Register  to view this content.
    will translate as

    Please Login or Register  to view this content.
    which is obviously not valid syntax... you should perhaps revert to Cells based approach (R1C1) given it is significantly more flexible than using Range

    Please Login or Register  to view this content.
    equates to

    Please Login or Register  to view this content.
    which is R1C1 - ie Row 15 Column 16 which is equiv. to P15

+ 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