如何制作所有用户使用的Excel自定义标签。

编程入门 行业动态 更新时间:2024-10-27 08:29:50
本文介绍了如何制作所有用户使用的Excel自定义标签。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经使用customUI工具创建了customTab,并在该选项卡中我放置了带有1个按钮的功能区。我正在将导出Excel工作表发送到硬盘。它工作正常但现在我想要自定义选项卡可用于所有excel文件。怎么样才能帮到我。

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.

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

推荐答案

您必须将工作簿另存为 Excel Add -in [ ^ ]然后将其加载到加载项集合中。接下来,每个工作簿都可以使用自定义选项卡及其控件。 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.

更多推荐

如何制作所有用户使用的Excel自定义标签。

本文发布于:2023-10-21 17:39:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1514909.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   标签   用户   Excel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!