Is there an update to this?

J

Jim May

I've noted the following random code line:
Totalpage = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")

This looks quite "old" with it's reference to Excel4;
Is there an update or new way of performing the same feat?
TIA,
 
T

Tom Ogilvy

Unfortunately,
the alternative is to loop through the pagebreaks and figure it out on your
own.
 
Top