Align to the left or to the right (or center)

K

kaokao1

Excuse my poor English.
Please I want to *align numeric values to the left side*, or to the
right side, or center it in the cell in Excel. Using Visual Basic.
Maybe using *Format or FormatNumber *or another function which is
capable to align in the way explained.
THANKS VERY MUCH.
 
W

ward376

Range("C2").HorizontalAlignment = xlLeft
Range("C2").HorizontalAlignment = xlCenter
Range("C2").HorizontalAlignment = xlRight
 

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