Hello,
I have two UDF's defined in my workbook. One in Module 1 and the other in Module 2.
The first UDF is used solely on Sheet1, and the second UDF is used solely on Sheet2.
When I calculate the Sheet1 and navigate to Sheet2, every UDF on the Sheet2 has a #VALUE ! error. And when I calculate Sheet2 and then navigate back to Sheet1, every UDF on the Sheet1 has a #VALUE ! error. For some reason I can't have both of my UDFs calculated at the same time across two sheets.
I added the ActiveSheet.Calculate command under the Worksheet Activate window for each worksheet, so I wouldn't have to manually calculate the each sheet.
The problem comes when I print my workbook, whatever sheet was last active has the UDFs correctly calculated, and the other sheet has #VALUE ! errors.
My print macro selects the print area on each sheet that corresponds to how many pages are active in each sheet. It then uses Array() to print all of those print areas in one job.
Does anyone know why this happens and if there is a fix??
Thank you for your assistance!
I have two UDF's defined in my workbook. One in Module 1 and the other in Module 2.
The first UDF is used solely on Sheet1, and the second UDF is used solely on Sheet2.
When I calculate the Sheet1 and navigate to Sheet2, every UDF on the Sheet2 has a #VALUE ! error. And when I calculate Sheet2 and then navigate back to Sheet1, every UDF on the Sheet1 has a #VALUE ! error. For some reason I can't have both of my UDFs calculated at the same time across two sheets.
I added the ActiveSheet.Calculate command under the Worksheet Activate window for each worksheet, so I wouldn't have to manually calculate the each sheet.
The problem comes when I print my workbook, whatever sheet was last active has the UDFs correctly calculated, and the other sheet has #VALUE ! errors.
My print macro selects the print area on each sheet that corresponds to how many pages are active in each sheet. It then uses Array() to print all of those print areas in one job.
Code:
Sheets(Array("Sheet1", "Sheet2")).Select
ActiveWindow.SelectedSheets.Printout
Does anyone know why this happens and if there is a fix??
Thank you for your assistance!