Results 1 to 8 of 8

Thread: Repeating Format Automatically On Scrolling Down To New Page

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Try this...

    When you reach the 3rd row of each page, the code will automatically copy the RangeToCopy that is in the hidden sheet within the workbook. This assumes that each of your page has 46 rows.

    Code:
    Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
    
        If Target.Row Mod 45 = 3 Then
            If IsEmpty(Target) Then
                Worksheets("Sheet1").Range("RangeToCopy").Copy Sh.Cells(Target.Row, 1)
            End If
        End If
        
    End Sub
    Attached Files Attached Files
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

Similar Threads

  1. Did You Know:: Synchronized Scrolling, Comparing Workbooks Side by Side
    By Transformer in forum Tips, Tricks & Downloads (No Questions)
    Replies: 0
    Last Post: 05-26-2013, 10:42 PM
  2. Replies: 3
    Last Post: 04-05-2013, 08:24 AM
  3. Convert Text In YYYYMMDD Format To Date Format
    By S M C in forum Excel and VBA Tips and Tricks
    Replies: 1
    Last Post: 02-28-2012, 12:04 AM
  4. Scrolling Marquee text on Userform
    By Mechanic in forum Excel Help
    Replies: 1
    Last Post: 12-08-2011, 07:24 AM
  5. Capture values from IE page
    By maruthi in forum Excel Help
    Replies: 6
    Last Post: 11-22-2011, 08:25 AM

Posting Permissions

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