Active Sheet range a1 has changes, then copy value range a1 and paste to another sheet 2 range a1

cooleomter

New Member
Joined
Sep 3, 2024
Messages
25
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Please help,
i have a two sheets in a workbook. my goal is that if Active Sheet range A1 has changes (numbers with decimal) , then copy value Sheet range A1 and paste to another sheet 2 range a1. Sheet 2 is prepared and not to be created again..

Thank you guys.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You can't do this for all excel workbook, but you can do within the worksheet.

VBA Code:
'Under sheet1
Private Sub Worksheet_Change(ByVal Target as Range) 
    Dim EachCell as Range

    For Each EachCell in Target.cells
        If IsNumeric(EachCell.Value) Then If Int(EachCell.Value2) <> EachCell.Value2
            Sheet2.Cells(Target.Row, Target.Column) = EachCell.Value2
        End If
    Next EachCell
End Sub
 
Upvote 0
When you say"
if Active Sheet range A1 has changes (numbers with decimal)
what do you mean by 'has changes'?
Do you mean if the value in the cell changes, or if it is different from the corresponding value in sheet 2?
Does A1 contain a formula, or is the data entered manually?
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,215
Members
452,618
Latest member
Tam84

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