Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Accounting Format not aligned

Hi,

I have rows with formulas all input via vba with an accounting format.
These are all added by the same code but the numbers do not line up. I have
checked they are all right aligned but are not visibly right aligned. Some
cells are slightly off to the left just about a half a digit.

with MainPagepg
With .Range("M" & NextRow)
.NumberFormat = "_(* #,##0.00_);_(* (#,##0.00);_(* ""-""??_);_(@_)"
.HorizontalAlignment = xlRight
.FormulaR1C1 = "='" & ShName & "'!R21C11"
End With
End with

It must be a setting as it is only in some cells. since they show right
aligned I don't know what else to check.
--
Thanks for your help.
Karen53
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Accounting Format not aligned

Hi,

I found it. For some reason it set some of the cells to wrap text.
--
Thanks for your help.
Karen53


"Karen53" wrote:

Hi,

I have rows with formulas all input via vba with an accounting format.
These are all added by the same code but the numbers do not line up. I have
checked they are all right aligned but are not visibly right aligned. Some
cells are slightly off to the left just about a half a digit.

with MainPagepg
With .Range("M" & NextRow)
.NumberFormat = "_(* #,##0.00_);_(* (#,##0.00);_(* ""-""??_);_(@_)"
.HorizontalAlignment = xlRight
.FormulaR1C1 = "='" & ShName & "'!R21C11"
End With
End with

It must be a setting as it is only in some cells. since they show right
aligned I don't know what else to check.
--
Thanks for your help.
Karen53

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
Customize accounting format Rhett Excel Worksheet Functions 3 April 11th 10 03:55 AM
Text box - Accounting Format Matts Excel Programming 0 September 6th 07 12:58 PM
Underline with accounting format Will Fleenor Excel Worksheet Functions 4 September 21st 06 11:27 PM
Accounting Format Parentheses tiggy2 Setting up and Configuration of Excel 1 July 30th 06 03:00 PM
Display 0's in Accounting format markvi Excel Discussion (Misc queries) 3 March 10th 05 09:33 PM


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

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"