Harry Covair
Member
Hi the forum,
In the Workbook_Open event in ThisWorkbook, I fill an array defined as “Public arrmsg() as variant”. A debug.print confirms that the variable “arrmsg” contains the information.
Problem.
When I want to use an element of this array in a procedure belonging to another module (not in ThisWorkbook), a message "Subscript out of range" seems to indicate that the content of the table is empty.
The question is: is it possible to keep the contents of an array to use it in other procedures?
Any ideas or suggestion would be appreciated.
Have a nice day
Harry
In the Workbook_Open event in ThisWorkbook, I fill an array defined as “Public arrmsg() as variant”. A debug.print confirms that the variable “arrmsg” contains the information.
Problem.
When I want to use an element of this array in a procedure belonging to another module (not in ThisWorkbook), a message "Subscript out of range" seems to indicate that the content of the table is empty.
The question is: is it possible to keep the contents of an array to use it in other procedures?
Any ideas or suggestion would be appreciated.
Have a nice day
Harry