netrixuser
Board Regular
- Joined
- Jan 21, 2019
- Messages
- 77
- Office Version
- 365
- Platform
- Windows
Hello all,
I apologise up front because I haven't got my own code to show for you to debug or correct - I simply cannot get my head around how to start with this problem.
To simplify my issue:
One Workbook containing sheet1 and sheet2
Sheet1 contains a list of circa 5000 alerts received by a vendor, column B has either NEW, EXISTING or CLOSED. Column C has a unique reference number (no text) Column P has the End Time of the alert which is only populated if the alert is CLOSED.
The alerts are initially received via an email (trying desperately to get the vendor to send as a csv, but that is a different battle!) and sheet 1 is populated by copy/paste from the email text. I insert a columns at Column A to insert the date
When an alert is CLOSED and hence column O populated with the date/time the whole list of (currently) 5000 alerts is resent as another email (even the NEW and EXISTING alerts). I copy/paste the (now) CLOSED alerts into sheet2, using Column C (unique ref) as the guide to the copy/paste.
My goal would be to paste the list of all alerts into sheet 2 and then run a piece of code that does the following:
For sheet 2 -
Sheet1 example:
Sheet2 example
As always, many thanks for any help you can give, which in this case will be a lot !!
Netrix
I apologise up front because I haven't got my own code to show for you to debug or correct - I simply cannot get my head around how to start with this problem.
To simplify my issue:
One Workbook containing sheet1 and sheet2
Sheet1 contains a list of circa 5000 alerts received by a vendor, column B has either NEW, EXISTING or CLOSED. Column C has a unique reference number (no text) Column P has the End Time of the alert which is only populated if the alert is CLOSED.
The alerts are initially received via an email (trying desperately to get the vendor to send as a csv, but that is a different battle!) and sheet 1 is populated by copy/paste from the email text. I insert a columns at Column A to insert the date
When an alert is CLOSED and hence column O populated with the date/time the whole list of (currently) 5000 alerts is resent as another email (even the NEW and EXISTING alerts). I copy/paste the (now) CLOSED alerts into sheet2, using Column C (unique ref) as the guide to the copy/paste.
My goal would be to paste the list of all alerts into sheet 2 and then run a piece of code that does the following:
For sheet 2 -
1. look at Column A for the text CLOSED
2. When found, note the ref number in Column C.
3. Copy the Row (columns A through O)
4. Paste those cells in Sheet 1 in the row with the appropriate ref number (noted in step 2) Note: Column A in sheet1 has the date of the alert so the paste would be from Column B (for the appropriate ref number)
For Steps 3 and 4, it is only columns A and O that would contain different data to that in sheet1, but I'd assume copying the whole row would be easier.Sheet1 example:
Sheet2 example
As always, many thanks for any help you can give, which in this case will be a lot !!
Netrix