Hello,
SAS has a very wide range of products / modules.
With such a concise question we do not know exactly what you are using and in which version of SAS.
Moreover, do you use SAS or rather Visual Basic (VB)?
Is this "InsertReport2GFromSasFolder" part of SAS Integration with Microsoft Office?
In the latter case, you can try to post your question in the board :
Solutions > Business Intelligence > Integration with Microsoft Office
I can also move your post over there if you confirm it's a more appropriate board for this topic.
Cheers,
Koen