jeffreypaul
Technical User
Is it possible to define a variable in one workbook module and reference it in another workbook?
I want to call a subroutine from another workbook and have it recognize a variable set in the calling workbook subroutine. (It's a utility subroutine that I'd like to call from any other workbook)
A 'Public' variable works only in the same workbook.
The only way I've found is to make an 'optional' argument for that variable in the called subroutine?
I'm trying to pass an array ex: MyList() to the called subroutine.
Thanks!
I want to call a subroutine from another workbook and have it recognize a variable set in the calling workbook subroutine. (It's a utility subroutine that I'd like to call from any other workbook)
A 'Public' variable works only in the same workbook.
The only way I've found is to make an 'optional' argument for that variable in the called subroutine?
I'm trying to pass an array ex: MyList() to the called subroutine.
Thanks!