+ Reply to Thread
Results 1 to 5 of 5

VBA Find() question

Hybrid View

dorkydude666 VBA Find() question 04-20-2009, 01:21 PM
shg Re: VBA Find() help 04-20-2009, 01:26 PM
VBA Noob Re: VBA Find() help 04-20-2009, 01:29 PM
dorkydude666 Re: VBA Find() question 04-20-2009, 01:40 PM
dorkydude666 Re: VBA Find() question 04-20-2009, 01:43 PM
  1. #1
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: VBA Find() help

    Moved to programming....

    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  2. #2
    Registered User
    Join Date
    04-14-2009
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA Find() question

    Sorry about putting it in the wrong forum.

    rFound is not changed with my code. Now that I think about it though, do you think that .Activate at the end is changing what rFound is supposed to be?

    Consider the differences between:

    Set rFound = Cells.Find(What:="(", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
            xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
            , SearchFormat:=False).Activate
    and

    Set rFound = Cells.Find(What:="(", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
            xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
            , SearchFormat:=False)
    rFound.Activate

  3. #3
    Registered User
    Join Date
    04-14-2009
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA Find() question

    Ah ha! Beautiful. Thanks for the tip. Problem solved using above solution.

+ 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