MortenA
Chemical
- Aug 20, 2001
- 2,998
I want to print the total no of printed pages in a cell but cant find a funtion for this in EXCELL.
I therefore wrote a small VB function that looks like this:
Public Function nossheet() As Variant
nossheet = ActiveSheet.HPageBreaks.Count + 1
End Function
I seems to work - but it wont update. If the number of pages grow it stays a the initial value. Not by recalc and not by closing and opening the sheet.
Could anybody tell me what would make this value update?
Best regards
Morten
I therefore wrote a small VB function that looks like this:
Public Function nossheet() As Variant
nossheet = ActiveSheet.HPageBreaks.Count + 1
End Function
I seems to work - but it wont update. If the number of pages grow it stays a the initial value. Not by recalc and not by closing and opening the sheet.
Could anybody tell me what would make this value update?
Best regards
Morten