crazyeyeschase
Board Regular
- Joined
- May 6, 2014
- Messages
- 104
- Office Version
- 365
- Platform
- Windows
I have taken on more responsibility at work and decided I need a better way of tracking PO's and want to do so with macros within Excel.
Its been a while since i played with macros so I'm needing some help and refresher.
In this I want to ask 3 separate questions as I'm refreshing myself and before I get to deep in the weeds with extra worksheets.
1. Column J and K (goods received and invoice received) get an "x" once I have received receipt of the goods/invoice for the PO. Column L lists an ETA for completion. Once columns J and K both show the value "X" I want L to change value to "complete"
I have wrote the following which works but I need help running it all the way thru the worksheet.
2. I need a way to format each PO separately from the last to help define each PO on the spreadsheet. The PO is listed in column A however each line item on each PO is also listed.
So for example one PO might be 1 line item and only 1 row in excel but the next might be 5 line items and 5 rows in excel.
How can I format say every other PO to have a gray background but it also changes each duplicate.
3. How can i have macros running when the sheet is updated?
I have much more I want to do such as a dialogue box to insert new PO's that will reference vendor names and their vendor number, separate sheets for open/closed PO's and sheets for each building as I manage 3 (and growing)
This is just a start and would be something i could share across the team any help and guidance would be great.
Its been a while since i played with macros so I'm needing some help and refresher.
In this I want to ask 3 separate questions as I'm refreshing myself and before I get to deep in the weeds with extra worksheets.
1. Column J and K (goods received and invoice received) get an "x" once I have received receipt of the goods/invoice for the PO. Column L lists an ETA for completion. Once columns J and K both show the value "X" I want L to change value to "complete"
I have wrote the following which works but I need help running it all the way thru the worksheet.
Excel Formula:
Sub if_complete()
If Range("J2").Value = "x" Then
If Range("k2").Value = "x" Then
Range("l2").Value = "complete"
End If
End If
End Sub
2. I need a way to format each PO separately from the last to help define each PO on the spreadsheet. The PO is listed in column A however each line item on each PO is also listed.
So for example one PO might be 1 line item and only 1 row in excel but the next might be 5 line items and 5 rows in excel.
How can I format say every other PO to have a gray background but it also changes each duplicate.
3. How can i have macros running when the sheet is updated?
I have much more I want to do such as a dialogue box to insert new PO's that will reference vendor names and their vendor number, separate sheets for open/closed PO's and sheets for each building as I manage 3 (and growing)
This is just a start and would be something i could share across the team any help and guidance would be great.