VBA Worksheet_Calculate Help

reasem

New Member
Joined
Nov 15, 2019
Messages
38
Hello all, looking to create a VBA Worksheet_Calculate code that will copy cells based on criteria (the cells that are changed) and paste them to a new sheet one after the other. It is a calculate and not a change event since the cell value is changed via a formula. I have a data dump file that will import revenue and the worksheet will calculate the margin. If the margin is different than it was before, I want the cells to be copied and pasted as values to the notifications sheet. Likewise, if the predicted margin is larger than the margin, I want those cells to be copied and pasted to the notifications sheet. I'd also like a Msgbox to pop up saying "n models need to be reviewed" (n being the amount of models moved to the notifications sheet"

It would also be a bonus to specify if the margin increased or decreased in column G on the notification sheet.

Thanks!!!
 

Attachments

  • vba1.PNG
    vba1.PNG
    74.6 KB · Views: 10
  • vba2.PNG
    vba2.PNG
    48 KB · Views: 9

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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