I have been unable figure out VBA code to just extract the number/value, rather than filling a cell with the figure and then using the cell value to fill a variable.
Help, please?
Code:
Range("B22").Formula = "=GETPIVOTDATA(""Sum of Hours"",Pivot!$A$1,""Pay Period"",DATE(year($A$2),month($A$2),day($A$2)),""Office"",""Eastern"")"
number1 = Range("B22").value
Help, please?