removing module1

stunik94

New Member
Joined
Sep 21, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

I've made a checklist with a big save button with a macro behind it.
after clicking the save button it creates a new file with specific name. This new file should be as clean as possible, so without any buttons or macro's.
Is there any way i can put in a couple lines of code to remove the macro in the new file?

cheers!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Once saved as an .xlsx extension, the modules will be gone.

You can delete buttons first.

VBA Code:
Sheets(1).Buttons.Delete

Once saved, you won't notice the modules gone until you close and open again.
 
Upvote 0
Once saved as an .xlsx extension, the modules will be gone.

You can delete buttons first.

VBA Code:
Sheets(1).Buttons.Delete

Once saved, you won't notice the modules gone until you close and open again.

the easiest solution is the best! thanks!
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,947
Members
449,095
Latest member
nmaske

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