+ Reply to Thread
Results 1 to 5 of 5

Count Number of Characters in a Selection

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

    Count Number of Characters in a Selection

    I am using the macro below to count the number of specific character in a cell. The only problem it only counts one cell. How do I modify to display multiple cell counts if more than one cell is selected? Thx.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Count Number of Characters in a Selection

    I'm not sure about the MsgBox option, but you could save the results into an array or collection, then tag them into a Form. The Form could be designed to look like a message box, if you wanted.

    If it had to be a MsgBox, then I imagine you could use the same array/collection idea, then build-up a string based on the members. Then, you could add this string into the MsgBox. I imagine it would be kinda difficult to make it look pretty, but you could play with it.

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Count Number of Characters in a Selection

    Using the MsgBox collection idea, something like this may work:

    Please Login or Register  to view this content.
    If it worked the messagebox should look something like: "Delim Count: [A1=20] [A2=5] ...etc."

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

    Re: Count Number of Characters in a Selection

    Thanks Amabio. That worked out perfectly!!!

  5. #5
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Count Number of Characters in a Selection

    Glad to hear. Cheers.

+ 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. How to count the number of characters while typing
    By Tam123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 10:50 AM
  2. Count the number of Characters in a cell?
    By IGinc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2009, 03:02 AM
  3. Count the number of different characters in a range
    By aderougemont in forum Excel General
    Replies: 4
    Last Post: 01-12-2009, 11:36 AM
  4. How to count characters in a number of cells?
    By Staalander in forum Excel General
    Replies: 8
    Last Post: 01-11-2007, 11:36 AM
  5. Count Number of Characters in a cell?
    By AHJuncti in forum Excel General
    Replies: 2
    Last Post: 06-16-2005, 02:39 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