+ Reply to Thread
Results 1 to 4 of 4

replace text

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    replace text

    Hi Excel Gurus,

    I have a worksheet where I need to change text into specific letter, for this i use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    formula concatenated for each text which need to change, sometimes there are so many formulas which gets concatenated and it makes worksheet performance very slow. I have attached a sample worksheet for your reference. is there any VBA solution for this to improve the performance of worksheet. it would be great if macro runs every time if anything changed in the sheet.
    Attached Files Attached Files

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: replace text

    Hi charm1

    Might be an easier solution????
    Put this in Sheet1.Module
    Please Login or Register  to view this content.
    And this in a std module
    Please Login or Register  to view this content.
    Enter your Original text characters into any cell in Range("B11:I17")
    Attached Files Attached Files
    Last edited by Sintek; 11-11-2017 at 08:06 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: replace text

    Hi sintek,

    Many thanks for looking into this and providing a VBA solution. your macro works perfectly and it has indeed improved the worksheet performance when I tested with a range of 26 characters (A1.... Z1) and also got reed of concatenating so many formulas in once cell, however it stoped working when I changed the characters from "A1...Z1" to "A....Z", I have attached a sample workbook for your reference. It would be great if you provide a solution for this in the same code.

    Thanks,
    Charm
    Attached Files Attached Files

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: replace text

    Change this line of code....
    Please Login or Register  to view this content.
    to this

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA replace text command to replace a formula with text
    By MikeSta4ord in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2015, 01:08 PM
  2. [SOLVED] Search through columns and find specific text and replace that text with header column
    By adamzee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2014, 11:59 PM
  3. [SOLVED] Doing a Find/Replace not working if "replace" text is too large
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2014, 02:52 PM
  4. [SOLVED] VBA to Search a Text String, Find a Value listed in another column and replace the text
    By Jschrod303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 08:56 PM
  5. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  6. Replace Text Using Replace Buton
    By qwzx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2011, 07:11 AM
  7. Replace Text from Text Box Using Replace Buton
    By hdevadiga in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2007, 04:03 AM

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