Macro loop through table and create lsit on a different sheet

mkron

New Member
Joined
Apr 5, 2017
Messages
18
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
 
Upvote 0
I was able to figure it out with a few YouTube videos and forum posts.
Thanks for the resources!
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top