Hello,
I have a file with three sheets.
Table1, Table2 and Table3.
If the cell "C2" of "Table1" has a value cell "C2" of "Table2" will get it too via the formula "=Table1!C2"
Now I want that if cell "C2" of "Table2" has no value row "6" of "Table3" gets hidden.
I had it working within the same sheet with:
At the moment I have this code however I think I messed up the link between the sheets but can't help:
Also are there any resources you can recommend to get into Excel VBA and especially stuff like the above?
I have a file with three sheets.
Table1, Table2 and Table3.
If the cell "C2" of "Table1" has a value cell "C2" of "Table2" will get it too via the formula "=Table1!C2"
Now I want that if cell "C2" of "Table2" has no value row "6" of "Table3" gets hidden.
I had it working within the same sheet with:
Code:
Sub Test()
If Range("C2").Value = "" Then
Rows(6).Hidden = True
Else
Rows(6).Hidden = False
End If
End Sub
At the moment I have this code however I think I messed up the link between the sheets but can't help:
Code:
Sub Test()
If Worksheets("Table2").Cells("C2").Value = "" Then
Worksheets("Table3").Rows("6").Hidden = True
Else
Worksheets("Table3").Rows("6").Hidden = False
End If
End Sub
Also are there any resources you can recommend to get into Excel VBA and especially stuff like the above?