Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default 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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to repeat 2 contiguous rows to top of each page jwmbem Excel Discussion (Misc queries) 2 March 9th 08 02:23 AM
page setup won't allow entering "rows to repeat at top" jasbrow Excel Discussion (Misc queries) 1 February 11th 08 08:34 PM
Need rows to repeat Except for last page carrera Excel Discussion (Misc queries) 1 August 3rd 07 07:22 PM
Page Setup - Rows To Repeat At Top Maureen Weinberg Excel Discussion (Misc queries) 2 April 11th 07 02:56 PM
"Rows to repeat at top" option under page setup PaulandArt Excel Worksheet Functions 1 November 7th 05 02:13 PM


All times are GMT +1. The time now is 07:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"