+ Reply to Thread
Results 1 to 4 of 4

HPageBreaks

  1. #1
    Registered User
    Join Date
    12-15-2011
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    43

    HPageBreaks

    I'm not a programmer and do not know Visual Basic, but hoping someone can help with a macro question. Below is code from the macro that inserts a page break, but I would like it to reference the cell content, not the cell. The reason is that the cell most likely will change often.

    How can this code be modified to make this work?

    Please Login or Register  to view this content.
    Last edited by BBoydAnchor; 12-16-2011 at 09:52 AM. Reason: Add the CODE block, change title and add more color for clarity

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Help with HPageBreaks

    Try the following macro, which will insert horizontal page breaks for the active sheet...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-15-2011
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Help with HPageBreaks

    Thank you Domenic. That worked exactly how I wanted it to. As I mentioned, I'm not a programmer, but trying to learn. I just took my first class in C++ and will be taking more programming classes next semester. VBA classes will either be next summer or fall as I have to take another C++ class as a prereq for VBA.

    Anyway, thank you very much.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Help with HPageBreaks

    You're very welcome! Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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