Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rich
 
Posts: n/a
Default Contents Page

I have a large multiple tab workbook where each tab may contain 1 or more
pages when printed out.
Each tab is essentially a new heading
I want to create a table of contents which automatically detects how many
pages are in each tab and can therefore adjust the table of contents
accordingly.
Don't mind using a macro as I see this as the only way to go.

I was thinking along the lines of;

Sub Create_Table_of_Contents

FOR Contents_Line = 1 to Last_Tab_in_Workbook
Contents_Line_1 = Tab_1_Name
Contents_Line_1_Page_Num = 1
Contents_Line_2 = Tab_2_Name
Contents_Line_2 = Count_of_Pages_in_Tab_1 + 1
etc.
etc.
Next

Most of this I can handle, but how can you tell how many pages are in a tab
in print preview format?

Rich
 
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
Link page header with cell contents Matthew Excel Worksheet Functions 8 May 1st 07 06:22 PM
start page numbering after table of contents J. Williams Excel Discussion (Misc queries) 1 February 4th 06 12:07 PM
Problem with Page Numbering Aurora Excel Discussion (Misc queries) 0 November 21st 05 02:10 PM
Page Numbers Aurora Excel Discussion (Misc queries) 0 November 17th 05 08:04 PM
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM


All times are GMT +1. The time now is 12:09 AM.

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"