Forum Discussion
samnpti
Jul 19, 2021Brass Contributor
copy data to different worksheet
HansVogelaar Sir I have a two different excel file 1.copy.xls(Running in compatibility mode) 2.paste.xlsm in copy.xls sheet2 having "if" formula in D2. When condition match in D2 get "Y...
- Jul 22, 2021
Right-click the sheet tab of Sheet1.
Select 'View Code' from the context menu.
Copy the following code into the worksheet module:
Private Sub Worksheet_Calculate() Static OldVal As Variant If Range("C3").Value <> OldVal Then ThisWorkbook.Save OldVal = Range("C3").Value End If End Sub
samnpti
Jul 19, 2021Brass Contributor
sir,
it is changing with reference from Realtime data
please find attached .I have changes little
HansVogelaar
Jul 19, 2021MVP
It's dinner time where I live. I'll look at it later.