Hi all,
I am working in a macro that has two parts. The first one (call it macro1) summarizes and organize the data and the second (call it macro2) update it according to the users wish. The first part is ready, but to successfully write the second part I need some object variables defined in macro1. Those variables are public but they are cleared when macro1 finishes. I have tried to use the instruction static and to name a range in excel. It didn’t work.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
The VBA doesn’t read the named range and doesn’t accept the instruction static to a public variable.<o></o>
I really don’t know how to solve it. I would appreciate any help I could get around this.
I am working in a macro that has two parts. The first one (call it macro1) summarizes and organize the data and the second (call it macro2) update it according to the users wish. The first part is ready, but to successfully write the second part I need some object variables defined in macro1. Those variables are public but they are cleared when macro1 finishes. I have tried to use the instruction static and to name a range in excel. It didn’t work.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
The VBA doesn’t read the named range and doesn’t accept the instruction static to a public variable.<o></o>
I really don’t know how to solve it. I would appreciate any help I could get around this.