アドイン エクスプレスなしで Delphi を使用して単純なカスタム タスク ペインを作成し、カスタム タスク ペインを Excel に追加する方法。
タスクペインには 1 つのボタンがあります (閉じる)
procedure TMyAddin.OnConnection(const Application: IDispatch; ConnectMode: ext_ConnectMode; const AddInInst: IDispatch; var custom: PSafeArray);
var FApp:ExcelApplication;
CTP:TCustomTaskPane;
begin
...
CTP:=TCustomTaskPane.Create(Self);
//?
CTP.Visible:=True;
end;
XE7、office2010.pas、excel2010.pas を使用