Re: $$Excel-Macros$$ Stuck on very simple problem - VBA for Excel

2011-06-28 Thread Vasant
Hi Use len(cCellValue) to get the characters count. As for the dates, excel stores internally as the number of days elapsed since 1-Jan-1900 for eg. 24-Oct-2010 is stored internally as 40475 days, the len value is 5. Hope this helps On Wed, Jun 29, 2011 at 1:33 AM, Jon Kanas wrote: > I hav

$$Excel-Macros$$ Stuck on very simple problem - VBA for Excel

2011-06-28 Thread Jon Kanas
I have a macro which works down through all the cells in a column, parsing the contents of the cell for a particular text string. Here's the general outline: sCellValue = ActiveCell.Value CharCount = sCellValue.Characters.Count Found = 0 For i = 1 To CharCount If