Use VBA to change peel off setting

I want to write some VBA code in excel. So that user can change the setting of page width and length, and switch on and off of peel off options.

Is there a way to do so?