setting a variable equal to a value from a pivot table

M

mithu

anyone know how i can set a variable equal to a value from a pivot
table that is part of another sheet?

i tried

dim amount as double

amount = GETPIVOTDATA("YTD Total Units",[PERSONAL.XLSB]Sheet5!$A
$3,"SIEBELLINKID",sid,"CU_CODE","IPPRO")

but am getting an error. can someone please help me with this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top