Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have two columns which copy to the new book rounded to the nearest dollar. None of the other columns are doing this. It should be to 2 decimal places. CAMDepMade is long Sub NuSaveCAMDepMade(TenRow, CAMDepMade) 'Created 3/13/2008 by Karen Hoagland Debug.Print "Starting NuSaveCAMDepMade " & Application.ScreenUpdating With MainPagepg 'save CAM Deposits Made With .Cells(TenRow, 14) If CAMDepMade = 0 Then .HorizontalAlignment = xlRight .WrapText = False .NumberFormat = "_(* #,##0.00_);_(* (#,##0.00);_(* ""-""??_);_(@_)" .Value = CAMDepMade End If If .Value < CAMDepMade Then .HorizontalAlignment = xlRight .WrapText = False .NumberFormat = "_(* #,##0.00_);_(* (#,##0.00);_(* ""-""??_);_(@_)" .Value = CAMDepMade End If End With End With End Sub -- Thanks for your help. Karen53 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A visual basic value copy BUG?? - accounting format has copy problem!! | Excel Programming | |||
Copy/Paste how to avoid the copy of formula cells w/o calc values | Excel Discussion (Misc queries) | |||
copy formulas from a contiguous range to a safe place and copy them back later | Excel Programming | |||
EXCEL FILE a copy/a copy/a copy ....filename | New Users to Excel | |||
How copy format, font, color and border without copy/paste? | Excel Programming |