Hello,
I am trying to create a macro to loop through a table with 3 columns and create a list of drawing numbers on another sheet based on if the other 2 columns are equal to specific cells.
I do not know how to code in VBA but this is what I would expect it to set the steps to be.
Sub DWG_FINDER()
r = range(TableL[DWG])
Row = 3
For i in r:
----if TableL[LH] == Sheet1!C26:
-------->if TableL[RH] == Sheet1!D26:
------------>worksheet(Sheet1!).Cells(row, 8).value(Table[DWG])
------------>Row = Row + 1
-------->End If
----End If
End Sub
Thank you very much and any feedback/tips on how to learn VBA would be greatly appreciated!
-MK
I am trying to create a macro to loop through a table with 3 columns and create a list of drawing numbers on another sheet based on if the other 2 columns are equal to specific cells.
I do not know how to code in VBA but this is what I would expect it to set the steps to be.
Sub DWG_FINDER()
r = range(TableL[DWG])
Row = 3
For i in r:
----if TableL[LH] == Sheet1!C26:
-------->if TableL[RH] == Sheet1!D26:
------------>worksheet(Sheet1!).Cells(row, 8).value(Table[DWG])
------------>Row = Row + 1
-------->End If
----End If
End Sub
Thank you very much and any feedback/tips on how to learn VBA would be greatly appreciated!
-MK