Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets the formula of the worksheet to the given Add-In Formula.

Signature
C#C#
Wiki Markup
{description}
{excerpt}
Sets the formula of the worksheet to the given Add-In Formula.
{excerpt}
{signature:C#}
public void SetAddInFormula(string formula)
Signature
{signature}
{signature:vb.net
vb.net
}
Public Sub SetAddInFormula(ByVal formula As String)
Parameters

{param}
{remarks}

{remarks}
{example}
{code:csharp|title=C#}
//--- Set Cell D3 on the first Worksheet to reference formula Module1.Apple
//--- from the file TestAddInFormula2Helper.xpl.xla
WB[0]["D3"].SetAddInFormula("=TestAddInFormula2Helper.xpl.xla!Module1.Apple(1)");
{code}
{code:vb.net
|title=vb.net
}
'--- Set Cell D3 on the first Worksheet to reference formula Module1.Apple
'--- from the file TestAddInFormula2Helper.xpl.xla
WB(0)("D3").SetAddInFormula("=TestAddInFormula2Helper.xpl.xla!Module1.Apple(1)")
Param
formulaformula
{signature}

{parameters}
{param:formula}
Add-In Formula you wish to add, as a String.  Include the equals sign as well as a reference to the Excel Add-In file you wish to reference, if the file is not included in the local macros directory.
Remarks
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle

...

{code}

{example}
{scrollbar}