ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   .Copy partial value (https://www.excelbanter.com/excel-worksheet-functions/239475-copy-partial-value.html)

Bishop

.Copy partial value
 
I have the following code:

(Cells(i-6, "M").Value / 2).Copy Worksheets("Fail Stats").cells(fsstartrow,
"D")

What I'm trying to do is take the value in the cell, divide it by 2, and
paste in the destination. I can't quite get the syntax right though. Or can
it even be done in a single line?

Luke M

.Copy partial value
 
Instead of "copying" just state the value as a single equation

Worksheets("Fail Stats").cells(fsstartrow, "D") = Cells(i-6,"M").Value / 2

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bishop" wrote:

I have the following code:

(Cells(i-6, "M").Value / 2).Copy Worksheets("Fail Stats").cells(fsstartrow,
"D")

What I'm trying to do is take the value in the cell, divide it by 2, and
paste in the destination. I can't quite get the syntax right though. Or can
it even be done in a single line?



All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com