Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created custom tab in ms excel 2007.It is working good for that excel file.But i want to use that custom tab to all excel open files.Please tell me how to do that.


Here is my code:
i placed this code in Module1 in VBA project.

VB
Sub save(control As IRibbonControl)

    Dim OrigName As String

    OrigName = ActiveWorkbook.FullName
    ActiveWorkbook.SaveAs "D:\macro" + "\" + ActiveWorkbook.Name
      MsgBox "saved in D:\macro"
End Sub
Posted

1 solution

Save your workbook as Excel addin then load it[^] into Addins collection.

For further information, please see:
Developing Add-ins (XLLs) in Excel 2007[^]
Creating VBA Add-ins to Extend and Automate Microsoft Office Documents[^]
 
Share this answer
 
Comments
Wendelius 28-Sep-15 16:40pm    
Looks like a solution :)
Maciej Los 28-Sep-15 17:00pm    
Thank you, Mika.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900