"Reset" back to initial values

bunnyball88

New Member
Joined
Aug 21, 2013
Messages
8
I am creating a dashboard, governed by certain assumptions. I'd like for my customer to be able to change those assumptions (e.g. change the price of the widget to see how that changes the output in the dashboard), and futz around, but then, if they want, be able to "hit a button" and have it re-install the values and / or formulas that formed the initial assumptions.

Is there a way to do that?

Supernew to VBA and macro's so I apologize in advance if this is either very basic or, if upon explanation, i ask for more clarity!

Thank you!
 
Sub ResetConflictMin()
Sheets("Assumptions_Master").Range("AC22:BB46").Copy Destination:=Sheets("Assumptions_Variable").Range("CY22:DX46")
End Sub

Is the fact that i tried (and possibly failed) to name the macro ResetConflictMin the issue?
 
Upvote 0
The idea was that the 2 sheets would be 'Identicle', so the copy from address should be the same as the paste to address.

Make sure the Variable sheet isn't protected
 
Upvote 0
I dont believe it is protected, or rather, i created the sheet but have added no additional protections. Is there something i have to turn off / opt out of?

Even when i update teh code to:
Sub ResetConflictMin()
Sheets("Assumptions_Master").Range("CY22:DX46").Copy Destination:=Sheets("Assumptions_Variable").Range("CY22:DX46")
End Sub


I get the same error.

Thank you again, for walking me through this so slowly.
 
Upvote 0
Sorry, I can't duplicate the error.

I don't see how the name of the macro would make a difference..
You put the code in a Standard Module (Insert - Module - Pasted code there) ?
How are you executing the code? From the Developer tab, macros ?
 
Upvote 0

Forum statistics

Threads
1,226,798
Messages
6,193,063
Members
453,773
Latest member
bclever07

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