我是新手,精通Excel DNA和C#编程。这肯定是一个基本的问题,如果它已经被回答了,如果我被指向那个方向,我会非常高兴。当单击一个按钮时,我正在尝试将Excel工作表上活动的任何区域或单元格发送到相应的C#函数。 这是我的Controller类。 using System;
using ExcelDna;
using Excel = Microsoft.Office.Interop.Excel;
//Other dependencies
namespace My_Prj
{
[ComVisible(true)]
public class RibbonController : Ex
我已经创建了一个Nuget.org包,其代码如下(简写):
namespace MyNugetPackageNS
module MyNugetModule =
open ExcelDna.Integration
// this function is NOT seen in the package user's Excel session
[<ExcelFunction(Category="Test", Description="Add 1.")>]
let plus
试图编写要使用的Excel函数,但该函数的描述和必要的参数没有出现在Excel中。这使得函数变得无用,因为用户将不知道如何使用它。
试着按照其他问题中的建议使用ExcelDna.IntelliSense,但是它要么不起作用,要么我没有正确地设置它。这是我第一次使用ExcelDNA,所以任何帮助都将不胜感激。
[ExcelFunction(Name = "multiplication", Description = "Multiply the two inputs")]
public static int testFunction(
[ExcelArgum
我有一个项目,它在Excel中添加了一个带自定义函数的功能区。
使用,我已经为该项目创建了一些基本文档。但是我发现文档的可能性是有限的,我已经开始在它上面使用Sandcastle了。但是我不能让Sandcastle找到每个函数上面的XML注释。
下面是一个包含ExcelDNA和Sandcastle文档的简单函数:
/// <summary>
/// Returns the name of a chemical element.
/// </summary>
/// <param name="symbol">Symbol of an eleme
我正在测试,并希望在Excel中有一个运行一些简单代码的按钮。据我所知,以下代码应该在Excel中的“外接程序”选项卡中添加一个按钮:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExcelDna.Integration.CustomUI;
using NetOffice;
using NetOffice.ExcelApi;
using ExcelDna.Integration;
using ExcelPluginTest;
namespace Exce
可以从excel VSTO外接程序将RibbonButton内置的excel2010设置为enabled=false吗?
我尝试了以下几种方法:
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 (CommandBarCont