You are here:

Excel/Updating spreadsheets using a Macro

Advertisement


Question
There are 2 workbooks (one New and one Master).  Both workbooks have the same column headings (there are 8 columns).  Every time there is a change to data under Column B in the New workbook, I would like a Macro to append the entire row that was changed from New workbook to the Master workbook as a new row and the new row in the Master workbook will be highlighted in Yellow color. In addition, if a new row is inserted (in the middle or anywhere, it could be at the end), I would like the Macro to append the entire row from the New workbook to the Master workbook as a new row and the new row in the Master workbook will be highlighted in Yellow color.  

Answer
There's one basic problem which needs to be addressed: If an entire row in New is being updated, from col A thru H, then when col B is changed and the macro "kicks in", the rest of the information is not yet present to copy to the Master. Same when a row is inserted -- there's no information present yet -- the user is ABOUT to enter new data in the inserted row. But you're requesting a macro to transfer data when col B is changed, even when most of the data isn't present. Please clarify.
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

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