+ Reply to Thread
Results 1 to 7 of 7

Doing a Find/Replace not working if "replace" text is too large

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Doing a Find/Replace not working if "replace" text is too large

    Please Login or Register  to view this content.

    Trying to repeat a 550 or so character statement with a find/replace however I am getting type mismatch errors. When I use a smaller message in the "replace" it works.

    I need it to post a message exactly as long as what I have in there. How do I get it to work?
    Last edited by ks100; 02-05-2014 at 02:53 PM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How to tell a variable to repeat a character 1200 times?

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to tell a variable to repeat a character 1200 times?

    Please Login or Register  to view this content.
    for example.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How to tell a variable to repeat a character 1200 times?

    Quote Originally Posted by Izandol View Post
    Please Login or Register  to view this content.
    for example.
    Please Login or Register  to view this content.

    Still gives me an error 13 type mismatch, however it works when the string size is only 10. How do I get this to work for a string size of 550?
    Last edited by ks100; 02-05-2014 at 01:09 PM.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Doing a Find/Replace not working if "replace" text is too large

    I think you must loop. Limit is probably 255 characters with Replace.

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Doing a Find/Replace not working if "replace" text is too large

    I'm sure your original post mentioned replacing all blanks in Row 2, with 1200 repeating characters... Was I dreaming?!

    Try something like:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Doing a Find/Replace not working if "replace" text is too large

    Working thank you

+ 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. Replies: 3
    Last Post: 11-08-2012, 05:01 PM
  2. How to repeat a macro many times
    By cbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2010, 05:41 PM
  3. repeat something n times formula
    By cro4you.org in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2008, 11:14 AM
  4. I have a long equation which I need to repeat 16 times!
    By CC-Khriz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. I have a long equation which I need to repeat 16 times!
    By CC-Khriz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2005, 12: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