Giordano Bruno
Well-known Member
- Joined
- Jan 7, 2007
- Messages
- 1,356
I use the following code to save an "xlsm" file as an addin
With Thisworkbook
.SaveAs Application.UserLibraryPath & "ACME.xlam"
I get a run-time error 1004
This extension cannot be used with the selected file type...
If I change the file extension to .xla the file is saved as an Addin with an "xla" file extension.
I thought that 2007 required addins to have the "xlam" extension. Am I wrong?
With Thisworkbook
.SaveAs Application.UserLibraryPath & "ACME.xlam"
I get a run-time error 1004
This extension cannot be used with the selected file type...
If I change the file extension to .xla the file is saved as an Addin with an "xla" file extension.
I thought that 2007 required addins to have the "xlam" extension. Am I wrong?