Excel 2010-2019
Excel 2007
Excel 2003
Tips & Tricks
Excel Forum
Course Index CIG Excel Book
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > Forums > Excel
Excel Forum

Welcome to the Microsoft Excel Forum. Excel is one of the more popular topics here at Computer Learning Zone. This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, you can watch Excel Beginner Level 1 for free, and then purchase Level 2 for just $1.00 here. After you create a logon, you will have full access to the Forums.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments.

Click Here to Post a comment and start a new discussion

Please read the FORUM RULES before posting.


Page 1 5 Upload Images   Link 
Bruno Segers 
42 days ago
Hey guys,

Is there a formula or VBA code in Excel that can indicate in a cell how many pages of the so many pages in a specific sheet consists of?
Don't give me any comment to put it in de footer of header please. That i now how to do it. Read More...
Bruno Segers
41 days ago
This code does show the correct number of pages, but when printing, it stops its function on the following pages. Is there anyone who can help me further? I have attached the print preview and file.

Option Explicit

Sub Pagenumber()
    Dim xVPC As Integer
    Dim xHPC As Integer
    Dim xVPB As VPageBreak
    Dim xHPB As HPageBreak
    Dim xNumPage As Integer
    xHPC = 1
    xVPC = 1
    If ActiveSheet.PageSetup.Order = xlDownThenOver Then
        xHPC = ActiveSheet.HPageBreaks.Count + 1
        xVPC = ActiveSheet.VPageBreaks.Count + 1
    End If
    xNumPage = 1
    For Each xVPB In ActiveSheet.VPageBreaks
        If xVPB.Location.Column > ActiveCell.Column Then Exit For
        xNumPage = xNumPage + xHPC
    For Each xHPB In ActiveSheet.HPageBreaks
        If xHPB.Location.Row > ActiveCell.Row Then Exit For
        xNumPage = xNumPage + xVPC
    ActiveCell = "REV 1 - Strona " & xNumPage & " - " & Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
End Sub
Richard Rost
41 days ago
Hi Bruno. It's been a while since I've done anything like this with Excel VBA (Access is my forte). However, if memory serves you can calculate the number of printed pages in a Worksheet with:


Also, please review the Forum Rules. I don't allow the posting of external links.
Add a Reply
Set Focus with VBA Upload Images   Link 
Cecil Leforce 
2 months ago
I need help with this code to set focus. I would like for it to set focus in column B when the code runs. Thanks

Sub New_Formatted_Row_With_Formula()
Dim rActive As Range

Set rActive = ActiveCell
Scott Axton
2 months ago
Cecil Leforce
2 months ago
I would like for it to set focus in the first cell of the new row that it adds. Also where do i put the new code at in here?
Add a Reply
Forecasting Venue Upload Images   Link 
Walter Hamilton 
2 months ago
I have an excel spreadsheet that lists all of our programs with the Period of Performance (PoP) Start, PoP End, Funded Amount, Invoiced Amount, and Funded Remaining.  I'm trying to forecast monthly revenue over the remaining PoP.  I'm currently using the following formula: Read More...
Walter Hamilton
2 months ago

Walter Hamilton
2 months ago
As you can see from the screenshot, several of the rows have one too many out months with values in them.
Add a Reply

Show Older Comments...
View in Table Format

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

9/11/2021Circular References
8/25/2021Stock History
8/17/2021Flash Fill
8/5/2021Stock Portfolio
8/4/2021Stock Portfolio
6/23/2021Import Data
5/14/2021Quick Queries #4
4/4/2021Text to Columns
3/15/2021VLOOKUP in Access

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: microsoft excel forum  PermaLink