Results 1 to 10 of 12

Thread: Concatenate with style

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Here is a simple quick solution idea.
    It stores the formulas, then replaces all formulas with their values, then runs Ricks coding, then replaces the formulas

    I am using, as an example, a similar example to that at the referenced link ( https://www.mrexcel.com/board/thread.../#post-3953353 )

    I have this worksheet example, where I have a formula in the first cell:
    RicksConcatWithStylesBefore.JPG : http://i.imgur.com/PlcxFab.jpg
    _____ Workbook: RicksConcatWithStyles.xls ( Using Excel 2007 32 bit )
    Row\Col A B C D E F
    1 excel fox The thinking man's MrEXCEL Tips & Solutions
    2
    3
    4 excel
    5
    6
    7 fox
    Worksheet: Sheet1
    _____ Workbook: RicksConcatWithStyles.xls ( Using Excel 2007 32 bit )
    Row\Col A B C D E F
    1 =Sheet1!A4 & " " & Sheet1!C7 The thinking man's MrEXCEL Tips & Solutions
    2
    3
    4 excel
    5
    6
    7 fox
    Worksheet: Sheet1

    After running the macro you will get this:
    RicksConcatWithStylesAfter.JPG : http://i.imgur.com/3pvfB7n.jpg


    Alan

    P.S:
    Note: This solution is not perfect. If you have different styles or formatting for characters within a cell then some of the formatting is lost
    Example:
    Before: http://i.imgur.com/iv5yI4t.jpg

    After: http://i.imgur.com/IKxx7nj.jpg




    Macro here: https://excelfox.com/forum/showthrea...ll=1#post15166
    Also macro is in uploaded file, RicksConcatWithStyles.xls : https://app.box.com/s/n3rfg981htv37p5xjfz9y4v17ycoybqe
    Attached Files Attached Files
    Last edited by DocAElstein; 12-12-2020 at 09:45 AM.

Similar Threads

  1. Yet Another Number-To-Words Function (Sorry, US Style Only)
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 10
    Last Post: 08-06-2020, 02:44 PM
  2. changing arrangement of data to new style
    By saied in forum Excel Help
    Replies: 3
    Last Post: 02-12-2015, 10:34 PM
  3. New Forum Style
    By Admin in forum Public News
    Replies: 2
    Last Post: 05-16-2014, 11:34 AM
  4. Replies: 6
    Last Post: 12-23-2013, 04:07 PM
  5. Excel Number Format: Indian Style Comma Separation
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 6
    Last Post: 09-18-2013, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •