tinamiller1
New member
- Joined
- Aug 28, 2013
- Messages
- 16
- Reaction score
- 0
- Points
- 0
I attached an example of my data:
I am now on another workbook and have a scenario where I need to copy another name to existing cells and make it so the same name is filled in the blank cells. The following macro I can use to fill cells but each cell has to have data.
'macro fifteen
'implant update
Sub imptype()
Dim c As Range
For Each c In Range("l2:l" & Range("l" & Rows.Count).End(xlUp).Row)
c = IIf(UCase(Trim(c)) = "AIP", "Implant Pass-through: Auto Invoice Pricing (AIP)", "Implant Pass-through: PPR Tied to Invoice")
Next
End Sub
This will not work for what I need to accomplish with this particular workbook. I have an example of my data have and what I need. Now, I have over 3000 rows with this particular sheet and doing a click and drag to get all the AIPS filled in the cells and all the standards filled in the cells and using the above macro will work, however, I have workbooks that come over like this once a week and creating this macro for someone that does not know anything about Excel and the PM wants an automated process to help them out. So, the above macro will work however not exactly. As you see from below, AIP is for the claim 111, 222, 333, 777, so the AIP along with those blank cells needs to say Implant Pass-through: Auto Invoice Pricing (AIP) and 444, 555, 666 need to say
Implant Pass-through: PPR Tied to Invoice
I am now on another workbook and have a scenario where I need to copy another name to existing cells and make it so the same name is filled in the blank cells. The following macro I can use to fill cells but each cell has to have data.
'macro fifteen
'implant update
Sub imptype()
Dim c As Range
For Each c In Range("l2:l" & Range("l" & Rows.Count).End(xlUp).Row)
c = IIf(UCase(Trim(c)) = "AIP", "Implant Pass-through: Auto Invoice Pricing (AIP)", "Implant Pass-through: PPR Tied to Invoice")
Next
End Sub
This will not work for what I need to accomplish with this particular workbook. I have an example of my data have and what I need. Now, I have over 3000 rows with this particular sheet and doing a click and drag to get all the AIPS filled in the cells and all the standards filled in the cells and using the above macro will work, however, I have workbooks that come over like this once a week and creating this macro for someone that does not know anything about Excel and the PM wants an automated process to help them out. So, the above macro will work however not exactly. As you see from below, AIP is for the claim 111, 222, 333, 777, so the AIP along with those blank cells needs to say Implant Pass-through: Auto Invoice Pricing (AIP) and 444, 555, 666 need to say
Implant Pass-through: PPR Tied to Invoice