+ Reply to Thread
Results 1 to 2 of 2

Counting characters consisting of numbers in VB

  1. #1
    svai
    Guest

    Counting characters consisting of numbers in VB

    Hi!

    I have a problem regarding cells(x, y).characters.count i Visual Basic. This
    method won't work when the cell value is a number. I've tried to format the
    cells as Text in Cell properties, but that doesn't solve the problem. What's
    the easiest way around the problem? Without having to enter each cell and put
    an apostrophe before the number. Every cell value is an integer.

    Thanks
    Stefan

  2. #2
    mcg
    Guest

    Re: Counting characters consisting of numbers in VB


    svai napisal(a):
    > Hi!
    >
    > I have a problem regarding cells(x, y).characters.count i Visual Basic. This
    > method won't work when the cell value is a number. I've tried to format the
    > cells as Text in Cell properties, but that doesn't solve the problem. What's
    > the easiest way around the problem? Without having to enter each cell and put
    > an apostrophe before the number. Every cell value is an integer.
    >
    > Thanks
    > Stefan

    try m = Len(Selection)
    mcg


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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