+ Reply to Thread
Results 1 to 3 of 3

VB Code to create page break with criteria

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to create page break with criteria

    Hello:

    Please refer to attached file.
    I need VB Code to create page break as follows.
    1st page will be from text "TestStore in column A to row before next text "TestStore.
    2nd page will be from 2nd text "TestStore in column A to row before 2nd text "TestStore and so on until 31 days.

    Tried code below but somewhere logic is not correct to get me correct pagebreak.
    Please Login or Register  to view this content.


    i have highlighted some to show what should be on each page.

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: VB Code to create page break with criteria

    Like this?
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to create page break with criteria

    Hello jolivanes:

    Thanks a lot, it works for me.

    Riz

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel VBA Page Break code help
    By Bodz38 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2015, 12:08 PM
  2. Page break code required
    By Manishdhir in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2014, 02:51 AM
  3. [SOLVED] VBA/Macro to detect a heading at the bottom of a page and create a page break
    By jdodz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 07:16 PM
  4. Find First match value and add page break, findnext value and add page break
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2013, 12:58 PM
  5. Macro to create page break based on cells
    By matnelso in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 05:48 PM
  6. Create insert page break macro
    By qtam82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2012, 03:57 AM
  7. Create conditional insert page break macro
    By qtam82 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2012, 08:25 AM

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