ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   copy a sum in cell on sheet 1 (not formula) to cell on sheet 2 (https://www.excelbanter.com/excel-worksheet-functions/222661-re-copy-sum-cell-sheet-1-not-formula-cell-sheet-2-a.html)

Eduardo

copy a sum in cell on sheet 1 (not formula) to cell on sheet 2
 
Hi John
try

Change cell to fit your needs


Sub Macro1()
'
' Macro1 Macro
'

'
Range("B3").Select ' this is where the formula is
Selection.Copy
Sheets("Sheet2").Select
Range("B2").Select ' this is the cell where you want to copy the results
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
End Sub


"John" wrote:

need only the results of a formula to be transferred to sheet 2 ...cannot
have the formula



All times are GMT +1. The time now is 07:28 AM.

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