Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Fill across worksheet pages

I'm creating an invoice book and I want to number each page eg Inv 09/1, Inv
09/2, Inv 09/3; etc.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Fill across worksheet pages

The first step is to create a blank workbook with the correct number of blank
worksheets:

Sheet1, Sheet2, ..........

Then run the following macro to rename the sheets:

Sub RenameSheets()
Dim sh As Worksheet
Dim b As String, c As Variant
b = "09_"
c = 1
For Each sh In Worksheets
sh.Name = b & c
c = c + 1
Next
End Sub

Note that _ is used. That is because /\ are not allowed in tab names.
--
Gary''s Student - gsnu200859


"Cyara" wrote:

I'm creating an invoice book and I want to number each page eg Inv 09/1, Inv
09/2, Inv 09/3; etc.

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 delete pages in a worksheet? Gretchen Excel Worksheet Functions 2 April 4th 08 12:54 AM
linking worksheet pages [email protected] Links and Linking in Excel 1 October 4th 07 09:32 AM
Blank Worksheet Pages EricRod New Users to Excel 2 July 26th 05 10:17 PM
How do I delete pages 4 through 48 of my worksheet? jalene Excel Discussion (Misc queries) 3 July 10th 05 11:45 PM
numbering all pages in worksheet Lyn Familant via OfficeKB.com Excel Discussion (Misc queries) 1 February 12th 05 02:26 AM


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