Then, at least, declare it as a globel variable, ie outside of all subs. Or, better, pass it as a parameter into the subs, that need it.
In reply to Re^5: Not able to create worksheets inside a subroutine
by hdb
in thread Not able to create worksheets inside a subroutine
by devbond
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |