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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align in excel

Status
Not open for further replies.

myrgir

Programmer
Feb 7, 2006
62
CA
Hi
I would like to right align text in a specific cell in excel from vb.net. How can I do this?
Thanks in advance
 
As we are in the VBA forum:
yourRangeObject.HorizontalAlignment = -4152 'xlRight

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Accessing Excel from VB.NET is tricky. See KB articles 301982 and 306022 to point the way.
djj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top