VBA loop help when row values change

mandy123

New Member
Joined
Sep 18, 2020
Messages
4
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hello! I have tried finding the answer and can’t seem to locate what I need. The overarching goal is to loop through rows values, when they change. In between, I need my code to read a cell from column “A” which is annotated something like A001. The range can go to A002, A003, and so on. It is variable. Column “B” is the submission number corresponding to Column “A”, such as 0001, 0002, etc. If it is a revision to a previously submitted report (it was sent back and returned) it will have 0001_R001 or some such notation in column “B”.

In Column “D” is “comments”, which are “Accepted”, “Returned” or “pending”. What I would like some help with coding is this- look at column “A” for the first instance of a report, look to column “D” for its status, then if it is rejected or empty have the code look for the next occurrence of that same report under column “B” (I.e) if a revision report was submitted)

I have code to cap the comments at percent complete if they are pending or rejected.
And then loop the code from there to go through the entire sheet for those columns.

Any help would be appreciated! Thank you!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I think you will need to post an image of your worksheet to help with the explanation.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,341
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top