+ Reply to Thread
Results 1 to 5 of 5

Find and replace

  1. #1
    Forum Contributor
    Join Date
    07-11-2005
    Posts
    110

    Find and replace

    Is it possible to run Find and Replace from a macro where it picks up the 'find' and the 'replace' data from the data in two cells on the sheet?

    Any ideas?

    Thanks

  2. #2
    Niek Otten
    Guest

    Re: Find and replace

    Record a macro while doing it manually.
    Then edit the macro.
    What:=Range("whatever you wanted to replace") becomes What:=Range("a1")
    similar for the value to replace it with

    --
    Kind regards,

    Niek Otten

    "Brisbane Rob" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Is it possible to run Find and Replace from a macro where it picks up
    > the 'find' and the 'replace' data from the data in two cells on the
    > sheet?
    >
    > Any ideas?
    >
    > Thanks
    >
    >
    > --
    > Brisbane Rob
    > ------------------------------------------------------------------------
    > Brisbane Rob's Profile:
    > http://www.excelforum.com/member.php...o&userid=25096
    > View this thread: http://www.excelforum.com/showthread...hreadid=495314
    >




  3. #3
    Don Guillett
    Guest

    Re: Find and replace

    something like this

    Sub findreplace()
    Range("e14:e18").Replace What:="x", Replacement:="y", LookAt:=xlWhole
    Range("e16:e18").Replace What:=[e14], Replacement:=[e15], LookAt:=xlWhole
    End Sub

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Brisbane Rob" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Is it possible to run Find and Replace from a macro where it picks up
    > the 'find' and the 'replace' data from the data in two cells on the
    > sheet?
    >
    > Any ideas?
    >
    > Thanks
    >
    >
    > --
    > Brisbane Rob
    > ------------------------------------------------------------------------
    > Brisbane Rob's Profile:
    > http://www.excelforum.com/member.php...o&userid=25096
    > View this thread: http://www.excelforum.com/showthread...hreadid=495314
    >




  4. #4
    Forum Contributor
    Join Date
    07-11-2005
    Posts
    110

    Thanks

    Thanks, Neik, your help much appreciated

  5. #5
    Forum Contributor
    Join Date
    07-11-2005
    Posts
    110

    Thanks again

    Thanks Don!

    Much appreciated

+ 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