Order Entry Macro, how to get the order number once posted?

I wrote a simple macro in VBA that enters an order and then posts it.  On post, SAGE 300 assigns the next order number.  How do I return that order number to the macro? 

I want to put it in the message box for the user.