I don't have much experience with VBA, but according to the documentation on Calling the Methods of a Class Instance:
"When a method has output arguments, the first argument is always nargout, which is of type Long. This input parameter passes the normal MATLAB nargout parameter to the compiled function and specifies how many outputs are requested. Methods that do not have output arguments do not pass a nargout argument. Following nargout are the output parameters listed in the same order as they appear on the left side of the original MATLAB function. Next come the input parameters listed in the same order as they appear on the right side of the original MATLAB function. All input and output arguments are typed as Variant, the default Visual Basic data type."
So, for your code sample, R2 should be the output of the compiled function, and R1 is the input. You should be able to use R2 for further computations.
