+ Reply to Thread
Results 1 to 5 of 5

Automatically update tabs based on a cell reference

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    chelmsford
    MS-Off Ver
    Excel 2003
    Posts
    3

    Automatically update tabs based on a cell reference

    Hi, I'm new to using VBA but with some programming experience.
    I'm a teacher, I have created a separate worksheet for each student in a workbook. I want to be able to change the tab names automatically to reflect student names held as a separate list in another worksheet.

    I have found this code to change tab names to reflect the content of a cell reference but i have to update each worksheet individually. Is there any way of getting this to run automatically when I open the spreadsheet or better still, dynamically when I change the class list?

    Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Sh.Name = Range("$A$1")
    End Sub

    (A1 references the class list)

    Many thanks for your help,
    Andy

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Automatically update tabs based on a cell reference

    It can be automated but how to match the cell names with the sheet names to know which cell data should be applied to which sheet name is a question now…


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    chelmsford
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automatically update tabs based on a cell reference

    Hi Sixthsense, thank you for replying so quickly - really appreciated!
    I have set up a sheet for each student named STUDENT 1, STUDENT 2 etc up to 30. Each sheet has a reference in A1 to the student's name held in a sheet named CLASSLIST. It all works well if I go into each STUDENT sheet and tick the formula in A1 - it's just a bit inconvenient!
    I could try a macro, but I was wondering if it is possible to update the tab name dynamically - i.e. as soon as I change a student's name in CLASSLIST.
    Hope this helps!
    Thanks again,
    Andy

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Automatically update tabs based on a cell reference

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).

  5. #5
    Registered User
    Join Date
    10-23-2013
    Location
    chelmsford
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automatically update tabs based on a cell reference

    Here it is . . . Cant see GO ADVANCED hope this is OK, Thanks
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 02-01-2013, 02:53 AM
  2. Cell Reference in Copied Formula Won't Update Automatically
    By bahamakyle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-03-2012, 03:50 PM
  3. Macro to automatically update sheet name based on cell value
    By seanfoxen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2012, 05:17 PM
  4. Automatically update dates based on cell contents
    By Spreadsheet Surfer in forum Excel General
    Replies: 2
    Last Post: 01-12-2010, 05:39 PM
  5. Automatically update a protected cell based on contents of an unprotected cell
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2009, 11:13 AM

Tags for this Thread

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