+ Reply to Thread
Results 1 to 10 of 10

Search Value

  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    35

    Search Value

    Hi All,

    I have a problem with this code , i'm trying to find a value on a sheet and once i find it i offset my selection to a cell of a figure and copy this figure to another cell.

    my problem is , i need to resume the search from the last founded figure ,

    how to do that ?

    Please Login or Register  to view this content.

    i have recieved this code but it doesn't work


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    07-28-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Search Value

    I have modified my code to this one ,

    the new problem is it's just work for one step and stop , that mean i think my loop doens't work fine .


    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Search Value

    Hi, that second section of code was from me, and it works fine for what you said you were doing in the post where you asked for it. However for the problem you have here you do not need it.
    In your original code you don't need to be activating, or selecting cells to do the core functions, just at the end when you want the selection moved to the cell that was found (for some reason), so it would need to be like this:
    Please Login or Register  to view this content.
    EDIT
    I see you have made another post. It doesn't help people to help you when you keep changing the code function!
    The first code you posted has no looping, the second code has suddenly got a loop in it, and the absolute destination of "AC12" has turned variable.

    Please detail, (in words, not code), what EXACTLY you are trying to achieve, and THEN we can offer assistance.
    Last edited by Phil_V; 07-29-2009 at 05:13 AM. Reason: Another post from the OP
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

  4. #4
    Registered User
    Join Date
    07-28-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Search Value

    but i need also to use this code section because i exepect many values and i need to list all of them in order .

    but i don't know why it just goes for one step and stop

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-28-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Search Value

    now i modified to this but i got an error : " object required "



    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Search Value

    I'll ask again, WHAT are you trying to achieve?

    Find each occurance of "ASK Training Managers", and for each occurance copy the value that is at an offset of -5 rows, and + 2 columns into a list that starts at "AD20", and works it's way down for each value?

  7. #7
    Registered User
    Join Date
    07-28-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Search Value

    Find each occurance of "ASK Training Managers", and for each occurance copy the value that is at an offset of -5 rows, and + 2 columns into a list that starts at "AD20", and works it's way down for each value?
    exactly that's what i'm doing

  8. #8
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Search Value

    In that case try the following. Using 'Select' and 'Activate' the way that you are will only serve to tie you in knots

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-28-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Search Value

    thanks a lot , it works very well

  10. #10
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Search Value

    Please remember to mark the thread as 'Solved'.
    Edit your first post, click [Go Advanced], then use the drop down next to the subject to select [Solved]

+ 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