Results 1 to 8 of 8

Complicated Find - Replace

Threaded View

  1. #1
    Registered User
    Join Date
    12-05-2008
    Location
    Missouri
    Posts
    30

    Complicated Find - Replace

    I've attached the file (i think) to make thing easier.

    I am trying to get look at the first row of numbers for a part and then place in a corresponding number below. There are some examples already there such as 10 has 910 under it, and 5 has 400 under it.

    I was currently playing around with this code:

    'Value you want to find
    
    xFind = 5
    
    'Value you want to input
    
    xReplace = 50
    
        Cells.Find(What:=xFind, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
    
            xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, 
    
    MatchCase:=False _
    
            , SearchFormat:=False).Activate
    
        ActiveCell.Offset(-1).Value = xReplace
    But i don't know that this is the right direction to take with it and it doesn't seem to want to cooperate with me. Any suggestions?
    Attached Files Attached Files
    Last edited by abertrand; 01-13-2009 at 10:47 AM.

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