Results 1 to 5 of 5

Looping through range to replace data

Threaded View

venkatpvc Looping through range to... 08-23-2013, 05:36 PM
watersev Re: Looping through range to... 08-23-2013, 06:23 PM
JBeaucaire Re: Looping through range to... 08-23-2013, 06:23 PM
venkatpvc Re: Looping through range to... 08-23-2013, 06:41 PM
JBeaucaire Re: Looping through range to... 08-23-2013, 07:34 PM
  1. #1
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Looping through range to replace data

    Hello Everybody,

    I have data in column A, as 005 d33++123121245, and i need to replace data "005 d33++". i need only numbers.
    when i tried the below code I am getting reslut "TRUE" not what i wanted, can anybody plesae help me to correct my code.

    Sub Macro2()
    
    
    For i = 1 To 100
        Cells(i, 1).Value = Cells(i, 1).Replace _
            (What:="005 d33++", Replacement:="", LookAt:=xlPart, _
            SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
            ReplaceFormat:=False)
    Next i
    
    End Sub
    Last edited by venkatpvc; 08-23-2013 at 06:05 PM. Reason: adding more explination

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Retrieving XML data by looping through a range in a column
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-28-2013, 05:24 AM
  2. Looping through values to Replace
    By vncntj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2012, 11:13 AM
  3. [SOLVED] copy and replace data using looping macro
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-16-2012, 05:17 AM
  4. Looping through different columns in a range to populate the data in another workshee
    By deepika Jain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2011, 05:19 PM
  5. [SOLVED] Add Text to Textbox value by looping through a data range.
    By Francis Brown in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2005, 08:05 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