Copying more decimal places using macro button and = function

Josiah

Board Regular
Joined
Apr 10, 2008
Messages
178
I have a button that uses a macro to transfer the VALUES in one range of cells on one sheet (which are all calculated using a formula) to a range of cells on a different sheet. Right now, it will only capture 2 decimal places but I need it to capture as many decimal places as are used. How can I do this?

EXAMPLE (of ONE cell in range):
Cell V84 on sheet "Paper-Ink Usage" has the formula =Y2/(1-X1) and the result is 1679.357912

MACRO (In Button) SAYS:
Code:
With Worksheets("PRICING GRID")
    .Range("Al8:Am30").Value = _
    Worksheets("Paper-Ink Usage").Range("U78:V100").Value
End With
RESULT: Corresponding value of Cell on sheet "Pricing Grid" = 1679.35 (but I WANT it to be 1679.357912)

What can I do to capture ALL decimal places? I tried adjusting decimal place values in cell formats but nothing works.
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I tried replicating this, inserting 1679.357912 into cell U78, and it copied all the decimal places to AL8.

It doesn't always SHOW all the decimal places, this was affected by column width and formatting.
But the underlying value was copied across, just as I expected.

To be clear, what value do you have in U78 ?
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top