How to close an .xlam file

rdw72777

Well-known Member
Joined
Apr 5, 2005
Messages
723
So I can open and edit an .xlam file in the VBEditor window, but I can't figure out how to close it except to close out of Excel entirely and re-open. I can't close it by click the File-> Close because it jsut closes the VBEditor window but the .xlam is still open.

(So for my dumbest question ever) how can I close an .xlam file without closing out of Excel altogether.
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I suspect this would work in the immediate window of the VBE:

Code:
Workbooks("YourXlamFilename.xlam").Close SaveChanges:=True  'or False
 
Upvote 0
So is code always needed to close an .xlam file. That just seems odd to me, but what do I know.
 
Upvote 0
So is code always needed to close an .xlam file. That just seems odd to me, but what do I know.

It seems so. So far that is the only way I could find to do it. Actually, fastest one.

The other one is:
Office Button>Excel Options, select Addins in the left hand pane, click the Go button and then uninstall.
 
Upvote 0

Forum statistics

Threads
1,215,890
Messages
6,127,595
Members
449,386
Latest member
owais87

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