Results 1 to 10 of 12

Thread: Concatenate with style

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Dec 2020
    Posts
    10
    Rep Power
    0
    Wow nice, Thanks once again for your quick response,
    one little problem is there, if any cell contain a number (value) it shows run time error 1004, and if given range contains more than 230 characters VBA not works the destination cell (A3) will become blank.
    Last edited by DocAElstein; 12-09-2020 at 08:29 PM.

  2. #2
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Hello Abdul
    Quote Originally Posted by Abdul View Post
    ...if any cell contain a number (value) it shows run time error 1004
    This change seems to overcome that problem:
    Change
    Code:
    .Characters(Position, Len(Cell.Value)).Text = Cell.Characters(1, Len(Cell.Value)).Text
    to
    Code:
    .Characters(Position, Len(Cell.Value)).Text = Cell.Value


    Quote Originally Posted by Abdul View Post
    ... if given range contains more than 230 characters VBA not works the destination cell (A3) will become blank
    I do not understand this problem.

    Can you provide a sample to demonstrate the problem?
    I will then investigate further

    Alan

  3. #3
    Junior Member
    Join Date
    Dec 2020
    Posts
    10
    Rep Power
    0
    I do not understand this problem.

    Can you provide a sample to demonstrate the problem?
    I will then investigate further

    Alan
    Please check the attached file,
    Attached Files Attached Files

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
  •