+ Reply to Thread
Results 1 to 8 of 8

Enhance (accelerate) code to replace multiple special characters in large dataset

  1. #1
    Registered User
    Join Date
    07-11-2017
    Location
    Edhome, where else?
    MS-Off Ver
    365
    Posts
    52

    Question Enhance (accelerate) code to replace multiple special characters in large dataset

    Goodday experts,

    This code works really well in within a small range.
    The code checks every character in a range, replaces all special characters, and enters the "cleaned" value in the next cell.

    Unfortunately my range has expanded considerably and has now over 100.000 characters.
    With current code it takes a really long time to complete.

    Please Login or Register  to view this content.

    Can anyone help me to find a way to speed up this process?

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    Does making the calculation manual and stop updating the screen make any difference? times to run the code would be interesting to see the impact of changes
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-11-2017
    Location
    Edhome, where else?
    MS-Off Ver
    365
    Posts
    52

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    Hi @davsth
    Perhaps it might. I'll test it right away and revert once done.

  4. #4
    Registered User
    Join Date
    07-11-2017
    Location
    Edhome, where else?
    MS-Off Ver
    365
    Posts
    52

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    @davsth
    Nope, no improvement noticeable, still takes several minutes to finish.

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    Or perhaps:

    Please Login or Register  to view this content.
    Rory

  6. #6
    Registered User
    Join Date
    07-11-2017
    Location
    Edhome, where else?
    MS-Off Ver
    365
    Posts
    52

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    Hi Rory,

    Nice one, I'll give it a try and let you know asap.

  7. #7
    Registered User
    Join Date
    07-11-2017
    Location
    Edhome, where else?
    MS-Off Ver
    365
    Posts
    52

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    Yessss, 100 times better!

    Really great solution! Why in the world didn't I think of that???

    Thank you and Davsth for your swift help. I'm really grateful.

    Greetings,
    mamaexcel

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: Enhance (accelerate) code to replace multiple special characters in large dataset

    Glad we could help.

+ 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] Find and Replace Macro to replace list of special characters
    By dcowiesmith in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2021, 02:01 PM
  2. [SOLVED] Create new workbooks accelerate the code with large data
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-31-2019, 12:51 AM
  3. VBA code to replace INDEX/MATCH in large dataset
    By iantix in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 07-25-2017, 11:23 PM
  4. find and replace special characters
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-15-2015, 09:30 PM
  5. [SOLVED] Replace special characters with Space
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2014, 11:38 AM
  6. search and replace special characters
    By jmhultin in forum Excel General
    Replies: 2
    Last Post: 10-14-2009, 12:07 PM
  7. How do I find replace special characters?
    By zzapper in forum Excel General
    Replies: 1
    Last Post: 06-27-2005, 02:05 PM

Tags for this Thread

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