Transforming Uppercase to Lowercase

  • Thread starter Thread starter daniel chen
  • Start date Start date
D

daniel chen

Cells(1, 1) = "ABC" 'as given
Cells(1, 2) = Cells(1, 1) 'but I want it in lower case i.e. "abc"
Will someone help me with the VBA codes, please?
 
Hi there,

Adjust your second line of code so that it reads:

Cells(1,2) = LCase(Cells(1,1)) 'this will convert Cells(1,1) to lowercase.

LCase is a built in function.
UCase does the reverse, (ie) will convert a string to uppercase.

Hope this helps
Katie
 
Thank you, Katie
Katie said:
Hi there,

Adjust your second line of code so that it reads:

Cells(1,2) = LCase(Cells(1,1)) 'this will convert Cells(1,1) to lowercase.

LCase is a built in function.
UCase does the reverse, (ie) will convert a string to uppercase.

Hope this helps
Katie
 

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