Read data from the 'sebi csv sheet, loop through the Status column (L) for each transaction, and process the transactions marked as 1. Update the status as Done or Failed for each transaction. If all are marked as Done, update the MASTER sheet as Success; if any is Failed, mark it as Partially Done in the MASTER sheet. Finally, save the Excel file.
you are doing your some process with SEBI sheet data and updating the status in Status column with in the same sheet!!.
Now you need to update Status in Main sheet based on SEBI sheet Status column Right…?
If that’s right…
After completing the all your process related SEBI sheet.
2.Read your SEBI sheet data
3.Read you Main Sheet data
4.Use loop for Main sheet data
5.Get the Client code from Main sheet
6.filter Sebi sheet data with Client code
Now make one condition all of the values are DONE or not
8.If Yes use write cell and give value and range of the Column.
(Note: while giving the Index make sure you are passing correct index)
I have excel file, as shown in image the ‘MASTER’ Is maine and others chil sheets.
In master sheets there are multiple headers as show and the same name of child sheets also as per headers its start form sebi csv.
Now first I’ll check first header of sevi csv of the status is pending then I’ll go at that headers sheet (child sheet) and there I’ll check client code from master sheet if it’s match then check status of theat specific current row. After once the specific client code row done tye of success or falled as pe this basis update on master sheet of status column.
As per my understanding MASTER sheet is being considered as parent sheet and rest of the sheets are being considered as child sheets. Additionally all the sheets names are in MASTER sheet as headers. Furthermore, You are validating the ClientCode from parent and child sheets and updating the value of Status Column in Parent sheet with value of Status column with Child Sheet.
You can make use of the code attached if my understanding is right. Else please share more details.