+ Reply to Thread
Results 1 to 3 of 3

Detecting Top of Page

  1. #1
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Perth, WA, Australia
    MS-Off Ver
    Office 365
    Posts
    249

    Detecting Top of Page

    Is there a way of detecting, when printing, that a cell is at the top of the page?

    I am not talking about the automatic "Rows to repeat at top" option on Page Setup; I have programmatically suppressed repeating information in Column A but I want to repeat that information if the column is fed to a new page.
    Last edited by ffffloyd; 02-08-2009 at 08:47 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Detecting Top of Page

    Try this in the Immediate window.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Perth, WA, Australia
    MS-Off Ver
    Office 365
    Posts
    249

    Re: Detecting Top of Page

    Thanks Andy. That gave me the hints I needed.

    For the benefit of the wider Excel community, here is a function that I've written so that Excel may query itself directly from any cell as to whether that cell is at the top of a printed page:

    Please Login or Register  to view this content.
    Last edited by ffffloyd; 02-08-2009 at 10:53 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1