You HAVE to be doing something wrong...because you're getting vRet as nil in the macro...but when I gave you the EXACT SAME LINE to run alone, it was setting it perfectly. When you ran just that line it worked perfectly...when you run the macro, it doesn't...so the macro works...it HAS to be on your end.