Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align data with VB

Status
Not open for further replies.

Eek

Technical User
Feb 4, 2001
34
CA
I m working on a visual basic program that opens an excell sheet and fills it with data....How do I align the data ?

I tried : excelsht.range("a6:b5").horizontalalignment=xlright but that did not work...what am i doing wrong ?


 
Record a macro while you modify the Column/Cell Format to Text, number etc., stop recording then look at the VBA code. That is how I start looking, and sometimes no further.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top