It works the same way as XL3DoWriteback but requires the current Anaplan value as an additional argument.

XL3DoWriteback2 should be used instead of XL3DoWriteback to write data back to Anaplan.

XL3DoWriteback2( PerformWriteback, IntitialValue, WriteValue, Connection, [Hierarchy1], [Member1],…, [Hierarchy100], [Member100] )

ParameterDescription
PerformWritebackA reference to a range containing a Boolean value (TRUE or FALSE) specifying whether to ‌ perform the writeback. That cell's value will be reset to FALSE following the writeback operation
IntitialValueThe current value stored in Anaplan for that cell. Typically, this is read from an AnaplanXL grid.
WriteValueThe value to be written. Typically, an Excel cell reference.
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 unique name or an XL3Member formula