Allows a comment to be submitted on demand. It can be used in conjunction with XL3Link to trigger the execution.

This setup is designed to allow comments for any number of tuples to be submitted in one batch.

XL3DoComment( PerformComment, CommentHtml, Connection, [Hierarchy1], [Member1],…, [Hierarchy100], [Member100] )

ParameterDescription
PerformCommentA boolean value (TRUE or FALSE) specifying whether to  submit the comment. If this is an Excel Range then that cell's value will be reset to FALSE following the submission.
CommentHtmlThe comment to be submitted. Typically an Excel cell reference. This can contain HTML tags.
ConnectionConnection number to use.
Hierarchy1,…, HierarchyNName of the hierarchy that the following member applies to for example "Measures" or "[Customer].[Customer Geography]".
Member1,…, MemberNEither a single-member's unique name or an XL3Member formula.

This example shows an input template that could be achieved using XL3DoComment. While this template has a single column, and submits 5 comments, the same concept can be applied to many comments. To use it:

  1. Enter the new values in column C.
  2. Select the XL3Link in cell A1, which updates B1 to ‌TRUE.
  3. The XL3DoComment formulas in column E are triggered.
  4. When the process is complete, cell B1 is automatically reset to FALSE.

ABCDE
1=XL3Link(,"Submit Comment",,XL3Address($B$1),TRUE)FALSE


2




3=XL3Member(1,"[Department]","[Department].&[0001]")
Acceptable
=XL3DoComment($B$1,$C3,1,"[Measures]","[Measures].[Budget Amount]","[Date].[Calendar]","[Date].[Calendar].[Date].&[1128]","[Department]",$A3)
4=XL3Member(1,"[Department]","[Department].&[0002]")
Excelling
=XL3DoComment($B$1,$C4,1,"[Measures]","[Measures].[Budget Amount]","[Date].[Calendar]","[Date].[Calendar].[Date].&[1128]","[Department]",$A4)
5=XL3Member(1,"[Department]","[Department].&[0003]")
Acceptable
=XL3DoComment($B$1,$C5,1,"[Measures]","[Measures].[Budget Amount]","[Date].[Calendar]","[Date].[Calendar].[Date].&[1128]","[Department]",$A5)
6=XL3Member(1,"[Department]","[Department].&[0004]")
Acceptable
=XL3DoComment($B$1,$C6,1,"[Measures]","[Measures].[Budget Amount]","[Date].[Calendar]","[Date].[Calendar].[Date].&[1128]","[Department]",$A6)
7=XL3Member(1,"[Department]","[Department].&[0005]")
Underperforming
=XL3DoComment($B$1,$C7,1,"[Measures]","[Measures].[Budget Amount]","[Date].[Calendar]","[Date].[Calendar].[Date].&[1128]","[Department]",$A7)

The finished input template:

    • Control block: used to trigger the XL3DoComments' comment action.
    • New comments: these cells contain the new comments to be submitted.
    • XL3DoComment block: these XL3DoComment formulas control the cross-section of the cube against which the comments are submitted.

Web edition doesn't support using an XL3Lookup or other Anaplan XL formulas for the source values of the XL3DoComment. The XL3Lookups are run after the XL3DoComment.