trim leading spaces

C

captain bob

I am trying to trim leading and ending spaces with
bl3 = UCase(bl1) 'convert to uper case

LTrim (bl3)
RTrim (bl3)

however it does not work

any idea
 
G

Guest

I should have also mentioned that you have to assign the result of the
LTrim/RTrim to a variable.

So this should also work:
bl3 = UCase(bl1)
bl3 = LTrim(bl3)
bl3 = RTrim(bl3)
 

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