+ Reply to Thread
Results 1 to 3 of 3

Return index from find()

  1. #1
    Forum Contributor
    Join Date
    03-04-2013
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    147

    Return index from find()

    Hi,

    Can I use find() to return an index/integer?

    I'm using find().CurrentRegion to .Clear some stuff, I then want to re-color that area with interior.colorindex = 2 but to do that i obviously need to know what area I cleared..

    I was thinking that maybe I could do (pseudo code):

    Please Login or Register  to view this content.
    But find() doesn't seem to be returning an integer, found_col is not working.. What am I doing wrong? Or do you have a better suggestion on how to do it?

    All help greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Return index from find()

    I think Instr() might be more appropriate for what you are trying to do. I think you will also need to incorporate a loop. Submit a workbook example with before and after expectations for a specific answer.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Return index from find()

    You might want to try using Application.Match if you want to find a specific term in a row.

    Find will return a reference to the cell that the search term is found in.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. find text within an array of cells, return index
    By Leef_me in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-28-2014, 03:38 AM
  2. [SOLVED] Find "non-figure" cells and return cells index in mesage box
    By masben in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-30-2013, 09:27 AM
  3. Find Value in index and return adjacent cell
    By t2tommy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-09-2013, 01:22 PM
  4. Replies: 4
    Last Post: 03-13-2013, 12:38 PM
  5. [SOLVED] Index Row and return data in a Single Column:No return
    By Domenic in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04:05 AM

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