+ Reply to Thread
Results 1 to 5 of 5

Calling Function on IF = Yes

  1. #1
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Calling Function on IF = Yes

    I want to circle some cells on a table on Sheet2 (workbook attached) if they correspond to cell values on a seperate row in Sheet1.

    I tried the code by defining a single cell and therefore know the code for the circling bit works, I just don't seem to be able to get it to scan the table and conduct the operation as required. The code below is what I'm back to after several hours of frustration....

    Surely it's doable?

    Please Login or Register  to view this content.
    Can anybody help please ...
    Attached Files Attached Files
    Last edited by opsman; 06-20-2010 at 07:44 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Calling Function on IF = Yes

    Try this.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Re: Calling Function on IF = Yes

    Thanks Martin

    It works fabulously. Just looking at what you did I can read it back perfectly but couldn't have thought of it yet (if that makes sense!). Using the Application.countif does that mean you can essentially quote an excel formula? I mean could I do the same for a VLOOKUP or AND statement?

    i.e.

    Please Login or Register  to view this content.

    Apologies if that sounds dumb but I'm still at the early stages of learning VBA.

    p.s. Are you the QA Trg Martin?
    Last edited by opsman; 06-20-2010 at 01:48 PM.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Calling Function on IF = Yes

    Yes is does - have a look also at WorksheetFunction in Excel help.

    Re QA TRG - I assume not as I don't know what these are

  5. #5
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Re: Calling Function on IF = Yes

    Fantastic. Thanks very much for that.

+ 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