Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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   Report Post  
Posted to microsoft.public.excel.programming
mcg mcg is offline
external usenet poster
 
Posts: 18
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting characters Howard Excel Discussion (Misc queries) 3 March 26th 10 12:27 PM
Counting characters LiAD Excel Worksheet Functions 5 March 10th 09 02:20 PM
Counting by numbers of Characters in a cell Michelle Excel Discussion (Misc queries) 5 August 30th 08 12:04 AM
Counting Characters Ryan Excel Worksheet Functions 7 January 23rd 07 04:44 PM
Counting characters sdmccabe Excel Discussion (Misc queries) 2 March 27th 06 08:10 PM


All times are GMT +1. The time now is 02:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"