Hi Guys,
I am still quite new to VBA but am learning slowly. I would just like some advice on how to proceed with the following.
I need to write a macro that will look at an array of data in a sheet. The array has several columns, but the ones I am interested in are the date, the pressure, and if there has been an agreement breach.
I would like a macro to start at the first row in a specific sheet. It would check to see if there has been a breach (Y/N). If there has been a breach, it would copy the data and pressure into a new speadsheet. If not, it will move to the next row and perform the check again.
From reading around, I am guessing that I need to use a loop statement, but am not sure how to implement it. If anyone could point me in the right direction, or give me a peice of sample code, I would greatlya appreciate it.
Many thanks in advance for the help
I am still quite new to VBA but am learning slowly. I would just like some advice on how to proceed with the following.
I need to write a macro that will look at an array of data in a sheet. The array has several columns, but the ones I am interested in are the date, the pressure, and if there has been an agreement breach.
I would like a macro to start at the first row in a specific sheet. It would check to see if there has been a breach (Y/N). If there has been a breach, it would copy the data and pressure into a new speadsheet. If not, it will move to the next row and perform the check again.
From reading around, I am guessing that I need to use a loop statement, but am not sure how to implement it. If anyone could point me in the right direction, or give me a peice of sample code, I would greatlya appreciate it.
Many thanks in advance for the help