Character Locations in Strings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to access individual characters within strings? In C++, you
can use brackets, but I don't know how to do it in VBA.

i.e. word = "string" --> to access the 3rd charcter, I would use word[3]
(or something like that) in C++. For VBA....?

Thanks.
Pflugs
 
Thanks!

Tim Williams said:
mid("string",3,1)

--
Tim Williams
Palo Alto, CA


Pflugs said:
Is there a way to access individual characters within strings? In C++, you
can use brackets, but I don't know how to do it in VBA.

i.e. word = "string" --> to access the 3rd charcter, I would use word[3]
(or something like that) in C++. For VBA....?

Thanks.
Pflugs
 

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