J
J S
I need another way to count the number of pages in a worksheet then the
excel4 macro below.
ExecuteExcel4Macro("Get.document(50,"")")
Does another way exist? Some VBA method perhaps?
The reason I ask is because I have run into a strange bug. I lauch an excel
spreadsheet via a VBscript. Normally I keep excel.visible = false, so that
it runs in the background. Recently, we have been noticing incorrect
pagenumbers (Which are calculated via the document(50) function). After some
investigation I have found that document(50) is returning different numbers
depending on whether or not excel is visible(+1 is excel is hidden), even
though the spreadsheet is exactly the same otherwise!!
excel4 macro below.
ExecuteExcel4Macro("Get.document(50,"")")
Does another way exist? Some VBA method perhaps?
The reason I ask is because I have run into a strange bug. I lauch an excel
spreadsheet via a VBscript. Normally I keep excel.visible = false, so that
it runs in the background. Recently, we have been noticing incorrect
pagenumbers (Which are calculated via the document(50) function). After some
investigation I have found that document(50) is returning different numbers
depending on whether or not excel is visible(+1 is excel is hidden), even
though the spreadsheet is exactly the same otherwise!!