Results 1 to 4 of 4

Find and Replace values in a selected Range

Threaded View

  1. #1
    Registered User
    Join Date
    11-11-2011
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2010
    Posts
    0

    Find and Replace values in a selected Range

    I have Excel 2013. I would like to use the code below but I need it to let me select the range instead of specifying it in the code, then pop up a form into which I can fill in what I want it to search and what I need it replaced with.

    Sub ReplaceValues_()
     
        Dim c As Range
        
        For Each c In Range("B2", Cells(61, "ML")).SpecialCells(2, 1)
            If c < 5 Then c.Value = 0
        Next
        
    End Sub
    Could someone out there please help me out?
    Last edited by alansidman; 07-13-2014 at 09:00 AM. Reason: code tags added

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 05-03-2014, 04:18 PM
  2. [SOLVED] Find and Replace - Value selected at random from a list
    By Rhys_O in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2012, 09:09 AM
  3. Find and Replace in selected cells only
    By Davidns in forum Excel General
    Replies: 5
    Last Post: 03-20-2012, 05:05 AM
  4. Replies: 4
    Last Post: 12-13-2010, 10:29 AM
  5. Find and Replace Values in Range
    By ThatGirlinMS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2006, 12:45 PM

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