Results 1 to 5 of 5

Thread: [RESOLVED] Error in FindCells

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Resolved [RESOLVED] Error in FindCells

    using this:

    xls.Cells.Find(What:=SEARCH_STRING, After:=xls.ActiveCell, LookIn:= _
    xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
    xlNext, MatchCase:=False).Activate

    You get an error if it cand find it.. how do I trap for this? should I just use a regular error trap? or is there a better way....

    Thanks
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  2. #2

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Error in FindCells

    another problem...

    When searching.. Excel repeats the "find" if its there! how do I determine that I have looped through all the "finds"??

    (Basically I am creating a function that will warn of problems if you change the sheet name... I want to check all sheets to see if that sheet name is referenced in formulas)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Error in FindCells

    Quote Originally Posted by A51gStatic
    (Basically I am creating a function that will warn of problems if you change the sheet name... I want to check all sheets to see if that sheet name is referenced in formulas)
    How are you changing the sheet names? Unless this is linked files there should be no problem changing the sheet name in functions??

    BTW.. Wish you wouldn't use square brackets in your name... messes the quote up..
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  4. #4

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Error in FindCells

    External app.. (In VB)
    if I change the sheet name? will it fix all the "links?" (wait.. I'll try it! lol)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Error in FindCells

    youre right! didnt think it would work if I did it from an external app..

    Great!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

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



Click Here to Expand Forum to Full Width