+ Reply to Thread
Results 1 to 30 of 30

Automatically updating multiple sheets to a master sheet

Hybrid View

  1. #1
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Automatically updating multiple sheets to a master sheet

    Hi welshgirl
    luck it a wet long weekend
    here is an idea i borrowed from Romperstomper
    Place this code in the "Project A" sheet module
    every time you leave the sheet it will update the "Master Budget" sheet if there have been new rows added
    Option Explicit
    Private m_StartRecordCount As Long
    Public Property Get StartRecordCount() As Long
        StartRecordCount = m_StartRecordCount
    End Property
    Private Sub Worksheet_Activate()
      m_StartRecordCount = Sheets("Project A").Cells(Rows.Count, 1).End(xlUp).Row
    End Sub
    Private Sub Worksheet_Deactivate()
    Dim ExitRecordCount As Long
    Dim MasterListRow
    ExitRecordCount = Sheets("Project A").Cells(Rows.Count, 1).End(xlUp).Row
    With Sheets("Master Budget")
    MasterListRow = "A" & .Cells(Rows.Count, 1).End(xlUp).Row + 1
    End With
    If ExitRecordCount > StartRecordCount Then
    Range("A" & StartRecordCount + 1 & ":H" & ExitRecordCount).Copy Sheets("Master Budget").Range(MasterListRow)
    End If
    End Sub
    you can change and use it in sheets Project B and C ect....
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  2. #2
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    Hi Pike

    That doesn't really make any difference to my worksheet. It still groups them into projects. How would i got about the way of just ordering them via dates on the master sheet?

    thanks

+ 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