+ Reply to Thread
Results 1 to 6 of 6

Cells.Find Syntax

  1. #1
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Cells.Find Syntax

    The following function does not work. I assume that the syntax: wb.Sheet(1).Cells.Find
    is wrong. Any suggestions?

    Please Login or Register  to view this content.
    Any help will be appreciated!

    Steven Craig Miller

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cells.Find Syntax

    wb.Sheets(1).Cells

    or (more appropriately)

    wb.Worksheets(1).Cells
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Cells.Find Syntax

    Thanks, that solved my problem!

  4. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Cells.Find Syntax

    I would like to ask a follow-up question.

    As already noted, the first function (now, Thanks!) works fine, but I can't get the second to work. Can I use a Range with Find?


    Please Login or Register  to view this content.
    What am I doing wrong? rg.Cells.Find doesn't seem to work.

    Any suggestions would be greatly appreciated.

    Steven Craig Miller

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Cells.Find Syntax

    the question goes to find parameters: LookIn, LookAt etc.

    In function the result should be: Function name equals something, Set is not used

    example of function that finds row the str is located in:
    Please Login or Register  to view this content.
    Last edited by watersev; 02-25-2011 at 11:46 AM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cells.Find Syntax

    Yes, you can use Find within a range.

    How are you trying to use this function? The use of ActiveCell is inappropriate; After must be a cell within the search range.

+ 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