Jun 26, 2006 #1 myrgir Programmer Joined Feb 7, 2006 Messages 62 Location 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
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
Jun 26, 2006 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR 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 Upvote 0 Downvote
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
Jun 26, 2006 #3 djj55 Programmer Joined Feb 6, 2006 Messages 1,761 Location US Accessing Excel from VB.NET is tricky. See KB articles 301982 and 306022 to point the way. djj Upvote 0 Downvote