Hello everyone,
The file worked well until I changed some of the conditions in the ElseIf statements (ex: "Green" to "Yellow", etc) and the macro has stopped working since then. I've stuck with this problem for 2 weeks and still have no idea how to fix it. I'm taking over a former colleague's position and the macro was what he did back then. Please help! thank you very much!
Some highlights:
1. Originally, we extract data from SAP (that's why there's a sheet called SAP in the file) and then Paste as Value the data onto "Master Worksheet" sheet. The pasted data range from column A to M. In other words, we start with pasting (paste as value) the data to "Master Worksheet" which currently returns error message.
Debug pointed out the following line was the source of the error:
It totally makes sense to me that since production_cell is changed_cell, sales_cell would be 1 column to the left of production_cell/changed_cell (see column order in Master Worksheet).
Then why was it highlighted and how to fix this problem?
2. The Macro was written to automate every time cells in columns "Sales" or "Production" receive values (Green, Yellow, Overdue, etc), then the cell in columns "Day" will automatically return the corresponding value stated in those If and ElseIf statements. Here, the sample file has 3 Days columns (Day 1, Day 2, Day 3). In my original file, it has 8 days in total.
3. Is there a way to incorporate the If functions in each "Status" column with the Macro, because they might carelessly get deleted?
Thank you so much! Please help!
Bookmarks