Dialog.Show Args

时间:2009-06-26 14:30:18

标签: c# excel vsto

有人知道VSTO Excel dialog.show函数中的args是什么吗?

即。我想设置排序选项以选择“标题行”,但不知道如何执行此操作,因为我只能通过为每个arg传递缺失来使函数正常工作。

Globals.RiskViewerWorkbook.ThisApplication.Dialogs[XlBuiltInDialog.xlDialogSort].Show(missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing);

1 个答案:

答案 0 :(得分:0)

至少在Excel 2003中,对于xlDialogSort,args如下(从Arg1开始):

orientation, key1, order1, key2, order2, key3, order3, header, custom, case 

请参阅this MSDN page以获取内置对话框的所有参数列表