Hi,
Apologies if this is really basic!
I am creating an Excel object in one sub as so:-
sub form_load
Set objExcel = CreateObject("Excel.application")
<loads of other stuff.
end sub
Within that sub I can get Excel to do whatever I need..just great.
But, my program contains about a dozen subs some of which also need to
use the same instance of the Excel object as they will be used to read/
write/format the
same sheet as the sub above.
I keep getting errors when subs, other than the one that is creating
objExcel, execute
saying could not find or execute objExcel.
How do I make objExcel available to all my other subs?
Thanks,
Stuart