Tag: 内置的

从Excel内置对话框inheritance?

我有一个Excel UDF,它需要2个参数,我想利用Excel内置的Funciton参数窗口/对话框,除了标准的行为(即你可以select单元格引用或在文本框中input参数值),我想使用第二个参数的下拉列表,第一个参数具有search能力,即当您键入“C”时,将popup以“C”开头的可用值列表。 我不知道是否有可能从Excel内置对话框inheritance,以及如何? 如果不可能,我必须创build自定义窗体,使其与Excel函数参数窗口类似。 我看到一个窗口的行为既是模态的,也是非模态的 ,也许这就是要走的路? 我还没有尝试过,因为我不太了解那里所说的话。 谢谢

如何禁用Excel内置的RibbonButton?

是否有可能将一个Excel中内置的RibbonButton 2010设置为enabled = false从Excel VSTO加载项? 我尝试了以下内容: CommandBarControls controlls=Globals.ThisAddIn.Application.CommandBars.FindControls(MsoControlType.msoControlButton, 7374, null, false); /// 7374 is the office control id of the control I want to access foreach (CommandBarControl control in controlls) { control.Enabled = false; } 但是,这似乎只适用于右键单击上下文菜单。 而不是为了丝带button。