You are here:

Excel/Using Individual Sheets and importing to a master list.

Advertisement


Question
Hi, I'm trying to set up a call-log with a master sheet of each individual call, and individual sheets for each person called. My master sheet looks like this:

DATE  TIME   NAME   REASON FOR CALL   RESULT

And my individual sheets look like this (note that I'm not using a NAME field for the individual sheets, but rather naming each worksheet the name of the person):

DATE   TIME   REASON FOR CALL   RESULT

Is there a way for me to update in the individual worksheets and have the data also appear on the master list? It would also be helpful if on the master list it could import the NAME field from the name of each worksheet, without me having to add a field to the individual sheets.

Thanks in advance for your help!

Answer
This requires the master sheet to be named MASTER:

Right-click the Excel LOGO (Near the file menu), select View Code, paste this in:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
   If Sh.Name = "Master" Then Exit Sub
   If Target.Column > 2 Then n = Target.Column + 1 Else n = Target.Column
   rw = Sheets("Master").Cells(65500, n).End(xlUp).Offset(1).Row
   Sheets("Master").Cells(65500, n).End(xlUp).Offset(1).Value = Target.Value
   Sheets("Master").Cells(rw, 3).Value = Sh.Name
End Sub

HTH
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bob Umlas

Expertise

I`m a Microsoft Excel MVP (Most Valuable Professional) and have been since the inception of the program in 1995. I can answer every kind of Excel question except: API, Importing/exporting to other programs (powerpoint, word,...)

Experience

Worked with MS Excel since version 0.99 (on the Mac!). Was contributing editor to Excellence Magazine, having written >300 articles. John Walkenbach said of me "I finally met someone who knows as much about Excel as I do."

Publications
Excellence, The Expert, Microsoft

Awards and Honors
MVP
Led sessions for the Convergence 2004-2006 seminar on Excel tips & tricks

©2010 About.com, a part of The New York Times Company. All rights reserved.