+ Reply to Thread
Results 1 to 7 of 7

Find & Replace Entire Cell Contents

Hybrid View

dwhite30518 Find & Replace Entire Cell... 01-31-2013, 05:12 PM
oeldere Re: Find & Replace Entire... 01-31-2013, 05:17 PM
dwhite30518 Re: Find & Replace Entire... 01-31-2013, 05:26 PM
dwhite30518 Re: Find & Replace Entire... 01-31-2013, 05:24 PM
jindon Re: Find & Replace Entire... 02-01-2013, 12:27 AM
dwhite30518 Re: Find & Replace Entire... 02-01-2013, 12:35 AM
jindon Re: Find & Replace Entire... 02-01-2013, 12:39 AM
  1. #1
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Find & Replace Entire Cell Contents

    I currently have the following code that I have been using to find and replace cell contents...

    Cells.Replace What:="MC9090-GF0SJEFA69R", Replacement:= _
            "Symbol-MC9090 Core Store Scan Gun", LookAt:=xlPart, SearchOrder:=xlByRows, _
            MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    However, I want to search cells within a particular column for a specified string of text and then replace the ENTIRE contents with something else. How do can I do that with either this code or with a different code?


    THANKS!!!!!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find & Replace Entire Cell Contents

    Without VBA

    Ctrl + H

    Find MC9090
    Replace by new text

    replace all
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Find & Replace Entire Cell Contents

    I opened a new book and did a sample and it replaced it but it didn't replace the entire contents with just the text I wanted...it only replaced the text I specified to search for.

  4. #4
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Find & Replace Entire Cell Contents

    I have just recently started getting this error when I try and replace contents....

    "Microsoft Excel cannot find any data to replace. Check if your search formatting criteria are defined correctly. If you are sure that matching data exists in this workbook, it may be on a protected sheet. Excel cannot replace data on a protected worksheet."

    The data is there and the worksheet is not protected...ideas?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Find & Replace Entire Cell Contents

    try
    What:="*MC9090-GF0SJEFA69R*"

  6. #6
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Find & Replace Entire Cell Contents

    What do i need to do in order to replace the entire contents if the cell contains some defined text?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Find & Replace Entire Cell Contents

    Columns("a").Replace "*MC9090-GF0SJEFA69R*", "Symbol-MC9090 Core Store Scan Gun"
    Alter column reference as needed.

+ 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