Indicate The Row Number For Each Last Row In Each New Page Printed

Nov 17, 2008

I have this question for indentifying the last row (number) for each and every page to be printed.

As I am using a loop to determine the last row of the table in each print page, I am only able to do in "hard coded". And with this "hard-coded" row number, I can set bordering to the table so that table will not be printed without any border (for in between pages if table is more than a page)

But the problem is that I had discovered that once any other user start using wrap text, or even change the row height, the macro will still captures the pre-determined no. of rows to do the bordering (as shown in my code).

In my, I had restricted the zoom size so that the quotation will always be the same format. Hence, based on this control zoom, the printable page changes if the row height changes too.



With destSh.PageSetup
.PrintArea = "$A1:$H" & LastR
.PrintTitleRows = "$1:$21"
.Zoom = 62
' .FitToPagesWide = 1
' .FitToPagesTall = 8
.PrintErrors = xlPrintErrorsDisplayed
.RightFooter = "&8Last Saved : " & _
Format(ThisWorkbook.BuiltinDocumentProperties("Last Save Time"), _
"yyyy-mmm-dd hh:mm:ss")
.CenterFooter = "Page &P of &N"...................

View 14 Replies


ADVERTISEMENT

Increment Serial Number For Each Printed Page?

Feb 1, 2014

I have a excel file to print label on a label printer.I've added additional file in this message.I'm printing different numbers of labels with this file.for example, if I print 10 pieces of labels, I want to write 1/10 , 2/10 , 3/10 etc. on each label.I finded a vb code to print this work but not exactly the way I want.I would ask one of excel guru's to look at my file.

View 8 Replies View Related

Same Page Printed But With Changing Sequential Number On It

Nov 12, 2008

I have a selected area which I print as labels.

I want to have a number on this label preferably counting back from the quantity of print.
So if I select 300 copies to print, the first label shows somewhere 300, the 2nd label 299, the third 298 and so on.

I use a button and macro for printing selected labels, so perhaps the reverse printing could be added there if only counting up is available.

Also to make it easier, a cell on the sheet can contain the number to count down from (this is preferred on thinking about it) So I could then print 20 labels from 300 to 280 say.

View 14 Replies View Related

How To Lock Page Once Printed

Feb 15, 2012

Is there a way to 'lock' a page from being changed once it has been printed? It can be printed multiple times but want it to not be able to be edited once it has been printed. Thinking I could have a control button on the page maybe and once it has been checked ok to print then click the button and it saves it as is and uneditable?

View 3 Replies View Related

Add Header Row To Each Printed Page

Oct 10, 2007

I have spent some time looking through the forum and even looked at Microsoft Excel help file and cannot seem to get exactly what I need. I have worksheets that I found the code on this site that I can put page breaks every so many rows. I have it set for 26 so it will break for every 25 counting the header. Here is the

Sub PageBreaks()
For I = 27 To 760 Step 25

ActiveSheet.HPageBreaks.Add Before:= Range("A" & I)
Next I
End Sub

The problem I am having is when I print the first page it has the headers in them, for example.

LastName, FirstName, StuID, GrdLvl

How can I get a row placed right after each page break with with the column headers so each sheet I print will have the headers with the 25 rows of informatio. But then not be there after I print so If I need to sort I won't have a problem with all the headers.

View 3 Replies View Related

Totaling A Column On Each Printed Page

Jul 18, 2007

Is there a way I can display the total of a column on each printed page?

I have a table which is about 6 columns long but is hundreds of rows down. I would like the total of one of these colums to be displayed on every printed page. Is this possible?

View 6 Replies View Related

Print Header Row On Each Printed Page

Feb 26, 2008

Cell 1A = Lot# Cell 1B = Last Name Cell 1C = First Name Cell 1D = Phone. I need Row1 to be repeated on each page. The list has about 200 names. We live in a senior community so the list changes quite often.

View 3 Replies View Related

Make Row1 The Top Line On Every Printed Page

Nov 1, 2009

is it possible to make row 1 the (headingline) top of every printable page? office excel 2007 by the way

View 3 Replies View Related

How Many Characters One Line Can Contain On Printed Page - Landscape / Portrait

Aug 13, 2012

Trying to figure out the width of a single line of printed characters for Landscape v. Portrait (obviously the margins would change this).

View 3 Replies View Related

Excel 2003 :: Chart Spanning Too Many Page Goes BLANK When Printed

Jan 29, 2013

First, all charts are complete and visible in Excel, the problem is Printing. This is very hit-and-miss as to how many spanned pages can be printed.

Sometimes I can span over 4 pages, other times I can't do 1.5

The only think I can think of is some kind of memory issue - either Excel, Printer, or Windows. However, that is not obvious either.

View 1 Replies View Related

Showing Current Page Number And Total Page Number In Entire Workbook?

Nov 14, 2013

In my header I am trying to show the current page number and the total number of pages in the workbook. So if I have 10 pages in my workbook, page 5 would read "5 of 10".

I have this in my header "&[Page] of &[Pages]". All worksheets with 1 page read "1 of 1" and worksheets with 2 pages read "1 of 2" on the first page and "2 of 2" on the second page.

View 6 Replies View Related

New Number Would Be Placed On Printed Sheet

Mar 21, 2009

I would like to print a excel sheet and each time I print this sheet
a new number would be place on that printed sheet.
Like a invoce number.

So if I would print 50 sheets it could be number from 1 to 50 on each sheet
or if I printed 10 sheets it would be number from 1 to 10?

View 9 Replies View Related

Test Number Of Pages Being Printed

Sep 29, 2006

I would like to test for the number of pages that will be printed. Is there any way to do this with Excel VBA?

View 3 Replies View Related

Count Number Of Pages And Documents Printed

Oct 22, 2011

I have a macro that prints all documents that are found in a directory, i was thinking that it should be possible to modify this macro to count both number of documents as well as the pages that are printed, and display the count once the documents are sent for printing.

The Code:
Start of Code:
Sub ListDocNamesInFolder()
Dim sMyDir As String
Dim sDocName As String
sMyDir = "C:My Documents"
sDocName = Dir(sMyDir & "*.DOC")

[Code] .......

View 2 Replies View Related

Excel 2010 :: Get Total Number Of Pages To Be Printed

Sep 7, 2012

I need a method or function that can count the TOTAL number of pages to that will be printed. I don't need anything with HPageBreaks or Get.document(50, ""sheet name"")") for these don't seem to work on my worksheet.

All they seem to do is give me a number lower then the number of pages that will be printed and they are dependent on where the active cell is.

Here is my code that does not work.

Code:
Agreement_Page_Count = ExecuteExcel4Macro("Get.document(50,""Signature Page"")")
and
Code:
Function HowManyPagesBreaks(sSheet As Worksheet)
Dim iHpBreaks As Integer, iVBreaks As Integer
Dim iTotPages As Integer
With sSheet

[Code] ........

Both codes return 2 when there are 3 pages that can be printed. Unless I pause the code select the cell at the bottom of my sheet (it ignores it if I use use a macro to select the bottom cell) and then continue my code.

I've tried it with and without the entirerow.hidden.

Is there a way of bypassing everything and using a marco to open up page preview and getting the total number of page to be printed? I'm using excel 2010

View 1 Replies View Related

Entering Specific Number To Effect Number Section On Another Page

Jan 8, 2014

I am working on a concrete pour summary, I would like to have the specific codes on each tab be affected from one summary page. So when I enter a certain number on sheet 1 , it will affect that same number section that is on a different sheet. It will be adding a certain amount to that code section every time its entered. What functions need to be used to make this work..?

View 6 Replies View Related

Entering Specific Number To Effect Number Section On Another Page?

Jan 8, 2014

I am working on a concrete pour summary, I would like to have the specific codes on each tab be affected from one summary page. So when I enter a certain number on sheet 1 , it will affect that same number section that is on a different sheet. It will be adding a certain amount to that code section every time its entered. What functions need to be used to make this work..?

View 3 Replies View Related

Page Break Preview It Shows The Page Numbers In The Centre Of The Page

Jun 9, 2009

When I view a sheet under Page Break Preview, it shows the Page numbers in the centre of the Page. While I am aware that it would not print the page number I was wondering if there is an option to remove/hide the page numbers.

View 3 Replies View Related

Get Number From Web Page

Jun 27, 2008

I am trying to get a single number from a web query table without downloading the table to a worksheet. I would like to either turn the table into an array in vba or just extract one number from the table. In this case it would be the "This Week" result or array(2,2) position in the table.

The website:[url]

I have tried messing around with the destination for the webquery object but cannot get it to work unless the destination references (directly or indirectly) a worksheet range.

View 6 Replies View Related

Determine Page Number

Apr 29, 2008

Is it possible to programmatically determine the page number on which a specific cell will print?

View 14 Replies View Related

Page Number In A Cell

Jun 22, 2006

Is there any way to show the number of page (1 of 3, 2 of 3, and so on) in a cell ??? (like when we're in PrintPreview mode)

How could I do that ??? (if it's possible )

View 9 Replies View Related

Enter Page Number In Cell

Jun 16, 2007

I have a long list of items that I need to add what I call tag numbers too. I need the numbers to reset at the top of every page

page 1

item1 101
item2 102
item3 103
item4 104


page 2

item5 201
item6 202
item7 203

Is there any macro or formula that anyone knows of that will reset my numbers on every page break?

View 2 Replies View Related

Page Number On Sheet Without Print It

Jun 16, 2007

I'm trying to figure out for my boss also I've done some search in this forum but no avail. He want each page to have large faded page number in the background like 'Page 1', Page 2' etc(there's 12 pages in one sheet) for presentations but do not want the page numbers to appear in the printed copies. Is it possible? I know about the watermark but he does'nt want page numbers in the prints

View 3 Replies View Related

Worksheet With Page Numbers Starting From Set Number

Apr 10, 2014

Not something I've ever had to do before as i generally work with data sheets, i'm creating a document to print but need the page number to start from a set value and not default "1" of "10" etc,

I need it to start from say "5" of "15" rather than the "1" of "10",

Its simple to do in Word, but like i say not something I've ever had to think about in Excel.

View 3 Replies View Related

Page Number In Cell Without Going To Footer Or Header

Oct 24, 2013

Is it possible to have a Page Number (e.g. Page 1 of 10) directly in Cell without going to the Footer or Header.

View 4 Replies View Related

Auto Page Number Tabs In A Spreadsheet

Dec 3, 2007

I am interested in printing an entire workbook in one shot with multiple tabs, where each tab is one page. I would like to print the tabs such that the first tab has the number '1' in the footer, the second tab has '2' etc. And I don't want to go into each tab and type the number in the footer.

Does anyone know how to easily make this happen?

View 6 Replies View Related

Create Spreadsheet Where First Page Allows To Input Number Of Teams?

Apr 24, 2014

What i'm looking to do is create a spreadsheet where the first page allows me to input the number of teams in the group.The teams cannot play others in the group except the ones they are paired with. eg. "Enter number of team pairs in set" (in this case 4)

Team 1a vs Team 1b
Team 2a vs Team 2b
Team 3a vs Team 3b
Team 4a vs Team 4b

After number of teams in set is established click a start button on the first tab of the spreadsheet.

this auto generates a new tab with all the possible win/loss combinations of 4 team pairs.

New Picture.jpg

if the number of teams on Tab 1 is changed (say to 6) and the start button is clicked, another new tab is generated with all possible win loss combinations of a 6 team set.

remember 1a vs 1b can only be win or lose and the win lose combinations are for the set of 4 matches ( or more matches if specified on the first tab and clicked).

if you put 7 in for the number of team pairs then it would be win loss combos for 7 pairs of teams.

View 7 Replies View Related

Page Number Sheets When Printing Entire Workbook

Aug 21, 2007

I am trying to find a way to print an "entire workbook", but have each of the sheets paged as a group separate from the rest. One workbook typically has up to 20 sheets, with each sheet up to roughly 8 pages. I need each sheet set to show page 1 of 8 or page 5 of 8, not page 22 of 53. Counting and typing in the total number of pages in each sheet's footer is too cumbersome. Also, printing each sheet individually has also been cumbersome when printing to PDF. Are there any other ways to have the "&[Pages]" function only reflect the number of pages within the sheet instead of in the entire workbook?

View 9 Replies View Related

Fitting Fixed Number Of Columns To Page Size For Printing?

Sep 24, 2011

I'm struggling with getting my Excel worksheet to fit nicely on the pg for printing to .pdf. I could tinker with column widths manually to work this out for a printed report. But I need to print a couple hundred reports with varying column widths, so I need a vba solution.

The context is that I'm using vba to process two sets of interlinked data on a worksheet. I only want to print one set of data, and keep the second set out of the print view. To do this, I'm keeping the first set of data in columns 1 to 10 and the second set of data in columsn 21 to 30. I set the print range to only include columns 1 to 10.

This works fine for keeping the second set of data off the printed pg. The problem is that there is always a gap between the end of column 10 and the maximum width of the printed pg. Given the formatting of the report, this doesn't look very good.

I know that page setup offers the "fit to" option. This would work if I wanted to fit everything on the worksheet on the pg, but I don't. I just want to fit columns 1 to 10 to the pg. Is there a way to do this, allowing for varying widths in columns 1 to 10? Is there a way to do it via vba?

View 2 Replies View Related

Do Not Want Highlights To Be Printed?

Nov 29, 2013

In excel sheet some times I highlight Cells, Rows or Columns for references but while printing these highlights get printed. is there any formatting tip so that only values are printed but highlights don't get printed (not even in grey scale).

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved