I have a big sheet of data that changes after I run through some code. I was thinking about a way to bring all that data back to life before running the code. I want to do this without creating any new sheets - just store the values in an object/variable and return it back after running my code.
I've tried doing something like
Dim myrng As Range
myrng = sheets(x).Usedrange 'storing the sheet contents
SheetS(x).Range("A1") = myrng 'bringing back original sheet contents to the same sheet
I know this might look stupid but I really have no idea if I should be doing some copy-paste application or whatsoever.