Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Resetting Page Number in Excell

Good Day
I am working on a large spreadsheet created elsewhere and I am trying
to add a macro to print a multipaged tab. When I insert the command
for page number [in VBA as well as manually], the first page of the
report starts with "Page 17 of ___".

I have no idea how it calculates the first page as #17, and I can't
find a way to get it to smarten up and count properly.

Does anyone know what is happening and what to do about it?

Many Thanks

John Kerr

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Resetting Page Number in Excell

There's an option on File|page setup|sheet tab.

I recorded a macro when I changed it to 1 and when I deleted everything in that
box:

The lines that were important we
ActiveSheet.PageSetup.FirstPageNumber = 1
and
ActiveSheet.PageSetup.FirstPageNumber = xlAutomatic

wrote:

Good Day
I am working on a large spreadsheet created elsewhere and I am trying
to add a macro to print a multipaged tab. When I insert the command
for page number [in VBA as well as manually], the first page of the
report starts with "Page 17 of ___".

I have no idea how it calculates the first page as #17, and I can't
find a way to get it to smarten up and count properly.

Does anyone know what is happening and what to do about it?

Many Thanks

John Kerr


--

Dave Peterson
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 remove the PAGE 1 from an excell worksheet? johnb Excel Discussion (Misc queries) 1 May 21st 10 05:27 PM
Excell Page setup Sameer[_3_] Excel Worksheet Functions 1 August 9th 07 12:48 PM
Resetting page numbers Vince Excel Discussion (Misc queries) 6 September 12th 06 04:36 PM
resetting page breaks Weekend user Excel Discussion (Misc queries) 1 April 27th 05 12:57 PM
HOW TO INSERT A PICTURE FROM A WEB PAGE TO EXCELL a.a. Excel Discussion (Misc queries) 2 February 10th 05 01:47 AM


All times are GMT +1. The time now is 03:08 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"