ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calling worksheet module from other module. (https://www.excelbanter.com/excel-programming/348132-calling-worksheet-module-other-module.html)

Michael Malinsky

Calling worksheet module from other module.
 
I have a module in Sheet1 that automatically refreshes the data
retrieved from a database. I have other modules that could affect that
sheet, but if Sheet1, the sheet does not automatically refresh. In
order for me to not have to duplicate the code in another module, how
would I go about calling the Sheet1 module from another module?

Thanks,
Mike.


Chip Pearson

Calling worksheet module from other module.
 
Mike,

Try something like

Sheet1.ProcName


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Michael Malinsky" wrote in message
oups.com...
I have a module in Sheet1 that automatically refreshes the data
retrieved from a database. I have other modules that could
affect that
sheet, but if Sheet1, the sheet does not automatically refresh.
In
order for me to not have to duplicate the code in another
module, how
would I go about calling the Sheet1 module from another module?

Thanks,
Mike.




Michael Malinsky

Calling worksheet module from other module.
 
Thanks, Chip. I had never done that before and just couldn't get it
right.

Mike.



All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com