ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   text alignment code (https://www.excelbanter.com/excel-discussion-misc-queries/34887-text-alignment-code.html)

k483

text alignment code
 

what's the correct vb syntax for left-aligning the text in a cell?

thanks

k483


--
k483
------------------------------------------------------------------------
k483's Profile: http://www.excelforum.com/member.php...o&userid=10791
View this thread: http://www.excelforum.com/showthread...hreadid=386434


bj

select the cell
With Selection
.HorizontalAlignment = xlLeft
End with

"k483" wrote:


what's the correct vb syntax for left-aligning the text in a cell?

thanks

k483


--
k483
------------------------------------------------------------------------
k483's Profile: http://www.excelforum.com/member.php...o&userid=10791
View this thread: http://www.excelforum.com/showthread...hreadid=386434




All times are GMT +1. The time now is 03:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com