ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   save file as addin programatically (https://www.excelbanter.com/excel-programming/297809-save-file-addin-programatically.html)

Bura Tino

save file as addin programatically
 
Hi,

I can't figure out the vba for this and recording a macro does not work. How
do I programatically save a workbook as an add-in with a specified name in a
specified directory? (Trying to avoid the pain of going through Save As...
and navigated to the desired location.)

Thanks,

Bura



Bob Phillips[_6_]

save file as addin programatically
 
Bura,

Give this a whirl

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Bob\Application
Data\Microsoft\AddIns\myAddin.xla", _
FileFormat:=xlAddIn

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Bura Tino" wrote in message
...
Hi,

I can't figure out the vba for this and recording a macro does not work.

How
do I programatically save a workbook as an add-in with a specified name in

a
specified directory? (Trying to avoid the pain of going through Save As...
and navigated to the desired location.)

Thanks,

Bura






All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com