Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created customTab using customUI tool and in that tab i placed ribbon with 1 button.There i am doing export excel sheet to harddisk.Its working fine but now i want to do my custom tab is availble to all excel files.how to make it please help me.


VB
Sub Export(control As IRibbonControl)

  Dim OrigName As String

    OrigName = ActiveWorkbook.FullName

    Application.DisplayAlerts = False

    ActiveWorkbook.SaveAs "D:\attach\" + ActiveWorkbook.Name

    ActiveWorkbook.SaveAs OrigName
    MsgBox "File exported into D:\attach"
End Sub
Posted
Comments
Patrice T 28-Sep-15 2:46am    
You already posted this question and got an answer.
Repost is not allowed.

1 solution

You have to save a workbook as an Excel Add-in[^] then load it into Add-ins collection. Next, a custom tab and its controls will be available for each workbook.
 
Share this answer
 

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