Converting Integers to text

G

Geoff E

I am having trouble converting an integer to text. I need to place a
leading zero next to the number when it is less than 10.

Trying to change this:
Print #1, "<html><title>pic" & i & "</title>"
To this:
Print #1, "<html><title>pic" & TEXT(i,"00") & "</title>"
does not work because the "TEXT" function is not a VBA function.

Any suggestions greatly appreciated.

Geoff
 

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

Top