Good Morning: Can the following code be shortened? I have enclosed the beginning of the code which continues on to Week 34.
Code
ComboBox1.AddItem 0
For x = 1 To 34 Step 1
ComboBox1.AddItem Format(x, "0")
Next x
returnvalue = ComboBox1
If returnvalue = 0 Then
Sheet79.Select
End If
If returnvalue = 1 Then
Sheets("Week 1").Visible = True
End If
If returnvalue = 2 Then
Sheets("Week 2").Visible = True
End If
If returnvalue = 3 Then
Sheets("Week 3").Visible = True
End If
If returnvalue = 4 Then
Sheets("Week 4").Visible = True
End If
Display More
Thanks
abbeville