Changes the orientation (from row to column or from column to row) of the group of members associated with the active cell.
EssMenuVPivot()
Returns 0 if successful. A negative number indicates a local failure (see VBA Return Values). A return value greater than zero indicates a failure on the server.
Declare Function EssMenuVPivot Lib "ESSEXCLN.XLL"() As Long Sub MPivot() X=EssMenuVPivot() End Sub