I need to copy calibration data from a master calibration file into a report file (to display the daily calibration in the report).
My goal is to put a button on the report excel sheet that will search the daily calibration for all the data that has been entered that day. (The date will be contained in a cell for referencing purposes). Then copy the row and insert it into the report file.
I can "think out" the code in my head. I was thinking of using a for loop to begin searching the dates (In my case the first date is located in cell A26.) Then have it add 1 to each as it searches the rows (A27, A28, A29, etc.) If it finds the day matches the current day then it copies the row (I can also just use offset/range to copy just columns A-P) and paste it into the report file. Then continue to find the rest of the dates that match.
The problem is twofold; I don't know how to stop the For loop (once it finishes sorting dates I don't want it to just continue searching empty cells) and I'm not very good at starting from scratch in VBA (I've only used VBA for 2 weeks maybe? And I'm rather new at coding to begin with...)
Does anyone have an example of a code that runs a similiar task that could help me?
Or know if an easy solution to this?
Any advice in general?
My goal is to put a button on the report excel sheet that will search the daily calibration for all the data that has been entered that day. (The date will be contained in a cell for referencing purposes). Then copy the row and insert it into the report file.
I can "think out" the code in my head. I was thinking of using a for loop to begin searching the dates (In my case the first date is located in cell A26.) Then have it add 1 to each as it searches the rows (A27, A28, A29, etc.) If it finds the day matches the current day then it copies the row (I can also just use offset/range to copy just columns A-P) and paste it into the report file. Then continue to find the rest of the dates that match.
The problem is twofold; I don't know how to stop the For loop (once it finishes sorting dates I don't want it to just continue searching empty cells) and I'm not very good at starting from scratch in VBA (I've only used VBA for 2 weeks maybe? And I'm rather new at coding to begin with...)
Does anyone have an example of a code that runs a similiar task that could help me?
Or know if an easy solution to this?
Any advice in general?