Hi everyone!
I'm hoping someone can help me with VBA as I'm about useless, especially when it comes to loops. I have a workbook that can have data entered into cells C4 and E4, and it generates a snapshot view, we then print the view. I need to automate this task if possible so that you don't have to manually run 60 snapshots.
What I've done to set this up is created another worksheet named "Reps" and placed data into columns A:B. There are headers in row 1, so that row can be ignored, however, I'm not sure how to write the VBA that would start in cell B2 on the "Reps" sheet and copy it to cell C4 on the "Month" workhseet and then copy A2 from the "Reps" sheet and paste to cell E4 on the "Month" sheet. Once the copy and paste was done the cell needs to change on the "Month" sheet so that the data updates, and then macro "Print_SnapShot" can be run. Once this is done it would need to loop and repeat these exact steps, only going down one row at a time on the "Reps" sheet (the cells to paste into are static) until it hits an empty row.
For the life of my I can't figure this out. If anyone could help it would be really appreciated! Thanks so much!
I'm hoping someone can help me with VBA as I'm about useless, especially when it comes to loops. I have a workbook that can have data entered into cells C4 and E4, and it generates a snapshot view, we then print the view. I need to automate this task if possible so that you don't have to manually run 60 snapshots.
What I've done to set this up is created another worksheet named "Reps" and placed data into columns A:B. There are headers in row 1, so that row can be ignored, however, I'm not sure how to write the VBA that would start in cell B2 on the "Reps" sheet and copy it to cell C4 on the "Month" workhseet and then copy A2 from the "Reps" sheet and paste to cell E4 on the "Month" sheet. Once the copy and paste was done the cell needs to change on the "Month" sheet so that the data updates, and then macro "Print_SnapShot" can be run. Once this is done it would need to loop and repeat these exact steps, only going down one row at a time on the "Reps" sheet (the cells to paste into are static) until it hits an empty row.
For the life of my I can't figure this out. If anyone could help it would be really appreciated! Thanks so much!