Counting chars in a string

  • Thread starter Thread starter bcmiller
  • Start date Start date
B

bcmiller

Hi,

I am writing some code to insert new records into an excel databas
where a key value has muliple values in the one record.

The separator is a comma.

Is there a way to count the number of comma's in a given string withou
having to write a new function???

Cheers,

b
 
Thanks Yogendra,

I had written a for loop to do the job, but that was slowing my macr
down, your tip has cut the size of my code and its execution time.

Cheers,

B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top