DBAchick
Programmer
- Apr 27, 2000
- 61
I am beyond frustration. This should be easy and I am making it difficult...
I have 9 worksheets in my excel workbook.
I want to enter data in sheet1 and based on the value in a column, I want the entire row to be updated and/or added to one of the other 8 worksheets.
Example:
Sheet 1 has food entries on it.
Column A has the category of food (Meat, Dessert or Veg)
Column B has the calorie count of the food
Column C has the description of the food
If Row 1 Column A is added and has "Meat" in it, copy all of Row 1 to the first empty row in worksheet Meat.
Likewise, if Row 1 Column C is changed to "Hotdog", update the corresponding Row on the "Meat" sheet.
In a perfect world, it would be great if Column A was changed fron "Meat" to "Veg", the row on the Meat worksheet would be deleted and a new row would be added to the Veg worksheet.
I have used Worksheet_change to try and write the row out to another sheet. It works if I hard code all the variables, but even standing on my head does not help if I try to make the code dynamic.
I hope there is an Excel guru out there......
Thanks!
[sig][/sig]
I have 9 worksheets in my excel workbook.
I want to enter data in sheet1 and based on the value in a column, I want the entire row to be updated and/or added to one of the other 8 worksheets.
Example:
Sheet 1 has food entries on it.
Column A has the category of food (Meat, Dessert or Veg)
Column B has the calorie count of the food
Column C has the description of the food
If Row 1 Column A is added and has "Meat" in it, copy all of Row 1 to the first empty row in worksheet Meat.
Likewise, if Row 1 Column C is changed to "Hotdog", update the corresponding Row on the "Meat" sheet.
In a perfect world, it would be great if Column A was changed fron "Meat" to "Veg", the row on the Meat worksheet would be deleted and a new row would be added to the Veg worksheet.
I have used Worksheet_change to try and write the row out to another sheet. It works if I hard code all the variables, but even standing on my head does not help if I try to make the code dynamic.
I hope there is an Excel guru out there......
Thanks!
[sig][/sig]