I am completely new to this and everything I've learned so far has been from this forum so thank you. Just one problem which I have found many answers but still can't solve.
I have 2 sheets (Labels, Order Form). The Labels sheet contains the columns Description & Label ID, along with various others that I pull information from. I then have 30 other worksheets that are named as the label ID (DCS-001, DCS-002 etc) and contain the template for that label. What I'm trying to achieve is so that on the Order Form sheet, I can select from the drop down list the description of the label, which then auto populates the label ID and that worksheet would then be visible. I have managed to hide/unhide this for one with the code below, but is there a short code in saying whatever is in cell ?, show the relevant worksheets, not just based on one value. Like a vlookup in VBA?
Private Sub Worksheet_Change(ByVal Target As Range)
If [C17] = "DCS-001" Then
Sheets("DCS-001").Visible = True
Else
Sheets("DCS-001").Visible = False
End If
End Sub
I have 2 sheets (Labels, Order Form). The Labels sheet contains the columns Description & Label ID, along with various others that I pull information from. I then have 30 other worksheets that are named as the label ID (DCS-001, DCS-002 etc) and contain the template for that label. What I'm trying to achieve is so that on the Order Form sheet, I can select from the drop down list the description of the label, which then auto populates the label ID and that worksheet would then be visible. I have managed to hide/unhide this for one with the code below, but is there a short code in saying whatever is in cell ?, show the relevant worksheets, not just based on one value. Like a vlookup in VBA?
Private Sub Worksheet_Change(ByVal Target As Range)
If [C17] = "DCS-001" Then
Sheets("DCS-001").Visible = True
Else
Sheets("DCS-001").Visible = False
End If
End Sub