+ Reply to Thread
Results 1 to 3 of 3

Macro for Page Setup - Repeat rows at top

Hybrid View

  1. #1
    epuk
    Guest

    Macro for Page Setup - Repeat rows at top

    Hi

    I would like to be able to select the rows that should be repeated on each
    page and then have a macro to put the rows in the field for rows to repeat
    at top.

    I have tried to record a macro, but I can't figure out how to have a
    variable to put the rows in the field for rows to repeat at top.

    Does anybody have such a macro?

    Thanks in advance.
    Kurt



  2. #2
    Ken Hudson
    Guest

    RE: Macro for Page Setup - Repeat rows at top

    Hi,

    Will this work for you?

    Option Explicit
    Dim CountRows As Integer
    Sub RowsAtTop()
    CountRows = InputBox("Enter number of rows to repeat at top.")
    ActiveSheet.PageSetup.PrintTitleRows = "$1:" & CountRows
    End Sub

    "epuk" wrote:

    > Hi
    >
    > I would like to be able to select the rows that should be repeated on each
    > page and then have a macro to put the rows in the field for rows to repeat
    > at top.
    >
    > I have tried to record a macro, but I can't figure out how to have a
    > variable to put the rows in the field for rows to repeat at top.
    >
    > Does anybody have such a macro?
    >
    > Thanks in advance.
    > Kurt
    >
    >
    >


  3. #3
    mike b
    Guest

    RE: Macro for Page Setup - Repeat rows at top

    Hello,

    I would like to know how I can write a macro that will do the following:

    1. Sort multiple rows of data for a number 70 or larger. If its less than
    80 then delete the row.

    2. Sort multiple rows of data for the letter A or B or C if D or E then
    delete the row

    3. How can I sort the data once it goes through the above macros to remove
    any duplicate data based on the first column?

    Thanks
    Mike b

    "epuk" wrote:

    > Hi
    >
    > I would like to be able to select the rows that should be repeated on each
    > page and then have a macro to put the rows in the field for rows to repeat
    > at top.
    >
    > I have tried to record a macro, but I can't figure out how to have a
    > variable to put the rows in the field for rows to repeat at top.
    >
    > Does anybody have such a macro?
    >
    > Thanks in advance.
    > Kurt
    >
    >
    >


+ 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