What I want to do is on the click of a button, I want to search sheet1 columnBS for all values are equal to a specified criteria.
I then want to populate part of sheet2 with the values in the same row as the first instance where the value is found.
and then if there is a 2nd value I want to populate another part of Sheet2 with the values in the same rows as where the 2nd instance is found.
and then if a 3rd and so on.
Effectivley, all instances are being posted into identical forms, just further down the sheet. So therefore the space between the cells will always be constant (so some sort of offset should work).
The main issue I'm having at the moment is how to search for all instances?
The start of my code is as followed:
so I want to search columnBS in Sheet1 for instances where Weekstart is found.
I then want to populate part of sheet2 with the values in the same row as the first instance where the value is found.
and then if there is a 2nd value I want to populate another part of Sheet2 with the values in the same rows as where the 2nd instance is found.
and then if a 3rd and so on.
Effectivley, all instances are being posted into identical forms, just further down the sheet. So therefore the space between the cells will always be constant (so some sort of offset should work).
The main issue I'm having at the moment is how to search for all instances?
The start of my code is as followed:
Code:
Dim WeekStart As Date
WeekStart = Date - (Weekday(Date, 3))
ActiveWorkbook.Sheets("Sheet1").Activate
Sheets("Sheet1").Unprotect "PasswordText"
so I want to search columnBS in Sheet1 for instances where Weekstart is found.