Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[b][red]This message was edited by SpecialEd at 2007-2-7 20:51:13[/red][/b][hr]
I am filling array variables with spreadsheet data and then using various procedures to do calculations. Using different command buttons to do different computations. What is the most efficient way to declare variables so that they are available to all worksheets in the workbook? I have tried all the DIM statements in Public Sub Workbook_Open() but it's not working. My command button gives "Compile error. Sub or function not defined" and the first reference to an array variable in my click event sub is highlighted. I read about modules and tried that but how do I create the module so that it is run at the start?
Thanks for the help.
0 · ·