View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
FlavioYaura FlavioYaura is offline
external usenet poster
 
Posts: 3
Default identify if a CalculatedField is positive or negative on VBA

I want to check if a calculatedfield in a pivot table is positive or negative
,for me execute a macro.
example:
result = brought * sold --is the formula for this example.
if result < 0 then
do X
elseif result 0 then
do Y
else
do Z
end if