+ Reply to Thread
Results 1 to 4 of 4

LOG that keeps a summary of new tabs

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Ne/Ia
    MS-Off Ver
    office 2016
    Posts
    52

    LOG that keeps a summary of new tabs

    I have a log file that just keeps being added to. i want to create a template Log that has a sheet with a summary of the different "EX" tabs. where each line has a link to the correct Tab.
    i'd like to click a button to copy the template sheet in numeric order:
    PHP Code: 
    Public Sub SheetCopy()

    Dim Sh As WorksheetTemplateSh As Worksheet
    Dim ShNum 
    As IntegerHighestNum As Integer
    Dim SheetCoreName 
    As String

    ' INDICATE THE CORE SHEET NAME
    SheetCoreName = "EX "

    INDICATE THE SOURCE SHEET
    Set TemplateSh 
    Sheets("Template")


    ' DETERMINE NEXT NUMBER FOR SHEET
    For Each Sh In Worksheets
    If InStr(1, Sh.Name, SheetCoreName) = 1 Then
        ShNum = Val(Right(Sh.Name, Len(Sh.Name) - Len(SheetCoreName)))
        If ShNum > HighestNum Then HighestNum = ShNum
    End If
    Next Sh

    COPY TEMPLATE
    TemplateSh
    .Copy after:=Sheets(Sheets.Count)

    ' MAKE VISIBLE
    ActiveSheet.Visible = xlSheetVisible

    RENAME
    ActiveSheet
    .Name SheetCoreName HighestNum 1

    End Sub

    Private Sub CommandButton1_Click()
    Run "SheetCopy"
    End Sub 
    Then i want to be able to copy the line in the summary sheet down 1 row and maintain the links, only to the new sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: LOG that keeps a summary of new tabs

    Simplest approach is to change the formulas in the EXTRAS sheet to use INDIRECT() reference to the target sheets. I've updated a few of the formula in row 9 to demonstrate this using the value in A9 to complete the indirect sheet reference.

    Now, row 9 must always be there to start, it will be the "template" to the first sheet and will be used as a "row template" to create additional rows with the same functions the same way the TEMPLATE sheet is being used to create new sheets with the same layout.

    I've moved the SheetCopy macro out of the sheet modules an into a public module where it is easily found. Here's my version of that macro:
    Please Login or Register  to view this content.
    This macro:

    1) Copies the last current EX row in the table and insert the copy into a new row below the last
    2) Deletes all the constants in that row, leaving only the formulas you've created.
    3) Adds a new higher number in column A of the new row
    4) Unhides the template, copies it, hides the template and names the new sheet.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Ne/Ia
    MS-Off Ver
    office 2016
    Posts
    52

    Re: LOG that keeps a summary of new tabs

    That is perfect! thank you!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: LOG that keeps a summary of new tabs

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. [SOLVED] Summary Sheet Different Tabs
    By Scorpiopaul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2013, 09:12 AM
  2. make a summary tab of info from other tabs
    By bjcowen9000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2013, 10:26 AM
  3. Using checkboxes on summary sheet to name tabs and hide/unhide tabs
    By eew2201 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2012, 06:13 PM
  4. List Summary from Series of Tabs
    By macky1730 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-08-2010, 03:20 PM
  5. Summary sheet for 80+ tabs/worksheets
    By Corey in forum Excel General
    Replies: 2
    Last Post: 11-18-2005, 01:30 PM

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