This may work:
Tested fine with:
If this is confirmed i may put this in the source section.
This has always been a hassle for me
Code:
Function WRAPPER_LONG( ByVal nValue As Long ) As Long Function = nValue End Function Macro Function fMTEST( m ) MacroTemp x Local x As Long x = 100 * m End Macro = x Macro MTEST( m ) = WRAPPER_LONG( fMTEST( m ) )
Code:
Local a As Long a = MTEST( 200 ) MTEST( 100 ) MsgBox Str$( a )
This has always been a hassle for me

Comment