Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default macro cuts off decimals!?

Hi,
The program below copies a list of assumptions line-by-
line into a model and then records the output of the
model. This is the problem. When the program copies and
pastes the output from sheet1 back into sheet2, it simply
cuts off most of the decimals. Is it possible to instruct
the macro to keep these decimals?

Thanks,
Allan




Public Sub Model()

Dim cell As Range

For Each cell In Worksheets("sheet2").Range("N8:N327")

cell.Resize(1, 5).Copy

With Worksheets("sheet1")

.Range("B2").PasteSpecial Paste:=xlValues,
Transpose:=True

cell.Offset(0, -5).Value = .Range("B9").Value
cell.Offset(0, -4).Value = .Range("B10").Value
cell.Offset(0, -3).Value = .Range("B11").Value
cell.Offset(0, -2).Value = .Range("B12").Value

End With

Next

End Sub



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
Count digits before decimals and after decimals Elton Law[_2_] Excel Worksheet Functions 5 April 3rd 23 10:59 AM
Deleting Macro Short Cuts Jamie Excel Discussion (Misc queries) 3 July 10th 09 03:08 PM
Short-cuts Horacio[_3_] Excel Discussion (Misc queries) 1 April 24th 09 05:11 PM
Short cuts? Bob Phillips Excel Discussion (Misc queries) 4 March 31st 05 06:27 PM
Text Cuts Off Jeff Excel Discussion (Misc queries) 3 November 30th 04 02:07 AM


All times are GMT +1. The time now is 02:54 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"