Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default align data in a cell from VB

Please, advise how to align data in a cell to right (or
left) by using VB.

Thanks,

Alex
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default align data in a cell from VB

ActiveCell.HorizontalAlignment = xlHAlignLeft 'xlHAlignRight,
xlHAlignCenter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Alex" wrote in message
...
Please, advise how to align data in a cell to right (or
left) by using VB.

Thanks,

Alex



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default align data in a cell from VB

Thanks a lot.

Alex
-----Original Message-----
ActiveCell.HorizontalAlignment =

xlHAlignLeft 'xlHAlignRight,
xlHAlignCenter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Alex" wrote in

message
...
Please, advise how to align data in a cell to right (or
left) by using VB.

Thanks,

Alex



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align & compare data Mike McFadden Excel Discussion (Misc queries) 0 January 2nd 09 09:10 PM
Align Data Krista Excel Worksheet Functions 2 March 28th 07 02:00 AM
how do i align rows of data Ting Excel Discussion (Misc queries) 7 February 22nd 06 01:14 PM
Left align '$' and right align numbers? skeetley Excel Discussion (Misc queries) 1 October 21st 05 08:12 AM
What is short-Cut forleft align and Right align? Sandy Excel Discussion (Misc queries) 1 February 24th 05 12:25 PM


All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"