save file as addin programatically

  • Thread starter Thread starter Bura Tino
  • Start date Start date
B

Bura Tino

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
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top