AllExperts > Excel 
Search      
Excel
Volunteer
Answers to thousands of questions
 Home · More Excel Questions · Answer Library  · Encyclopedia ·
More Excel Answers
Question Library

Ask a question about Excel
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About 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
 
   

You are here:  Experts > Computing/Technology > Microsoft Software > Excel > Using Individual Sheets and importing to a master list.

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


Expert: Bob Umlas - 4/28/2008

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

Add to this Answer   Ask a Question


 
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
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.