Hi guys,
I've got this sub that acts like a function, i want to pass another table to it since i want my sub to do the exact same thing to two tablse. A code snippet from my code below.
I already know how to pass variables, i just want to know what i need to store the tables as so i can pass it to this sub.
Thanks
I've got this sub that acts like a function, i want to pass another table to it since i want my sub to do the exact same thing to two tablse. A code snippet from my code below.
Code:
For Each nameRNG In [table8[Employee Number]].Rows
emp_num_ser = nameRNG.Value
emp_row_ser = nameRNG.Row
For Each numRNG In *****.Range("B3:B10000")
If emp_num_ser = numRNG Then
emp_row_win = numRNG.Row
Set emp_pay = service_wsh.Cells(emp_row_ser, month_col)
emp_pay.Resize(, 5).Copy
******.Cells(emp_row_win, 14).PasteSpecial xlPasteValues
Application.CutCopyMode = False
I already know how to pass variables, i just want to know what i need to store the tables as so i can pass it to this sub.
Thanks
Last edited: