Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Insert total of page in a worksheet in a cell

Hi,

In Excel 2003, do you know how I can insert in a cell the totals pages (only
print page) that I have in the worksheet.

I don't want to use the header and footer function.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Insert total of page in a worksheet in a cell

Sub Test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
ActiveSheet.Range("A1").Value = TotPages
End Sub


Gord Dibben MS Excel MVP

On Tue, 18 Aug 2009 09:51:01 -0700, catherine
wrote:

Hi,

In Excel 2003, do you know how I can insert in a cell the totals pages (only
print page) that I have in the worksheet.

I don't want to use the header and footer function.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Insert total of page in a worksheet in a cell

Thanks, it's working

"Gord Dibben" wrote:

Sub Test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
ActiveSheet.Range("A1").Value = TotPages
End Sub


Gord Dibben MS Excel MVP

On Tue, 18 Aug 2009 09:51:01 -0700, catherine
wrote:

Hi,

In Excel 2003, do you know how I can insert in a cell the totals pages (only
print page) that I have in the worksheet.

I don't want to use the header and footer function.

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I insert and resize a column on only one worksheet page? gottaknow Excel Discussion (Misc queries) 4 September 30th 09 11:46 AM
How to insert web page content into excel worksheet? Eric Excel Discussion (Misc queries) 1 August 18th 09 08:09 PM
Need page number & total pages in worksheet - not header or footer vonzott Excel Worksheet Functions 1 March 30th 07 08:34 PM
How do I insert a Sub total at every page break? Sharon Excel Discussion (Misc queries) 1 February 20th 07 03:37 PM
Insert Page Break in the Worksheet Thang Excel Programming 2 December 22nd 03 03:43 PM


All times are GMT +1. The time now is 07:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"