> Hello, can anybody tell me how to hide a tab when I'm changing a cell.
>
[quoted text clipped - 8 lines]
>
> Thanx!
That didn't work. Also I have more sheets than 6 which I want to show.
So if I put in cel B2 an "B" I want to show sheet A, B, G and H.
If I put a "C" in cel B2 than I want to show sheet A, C, G and H.
If I put a "D" in cel B2 than I want to show sheet A, D, G and H.
If I put a "E" in cel B2 than I want to show sheet A, E, G and H.
Please help!
Greets
Ardus Petus - 09 Jun 2006 08:18 GMT
'--------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rWatch As Range
Dim sSheet As Object
Set rWatch = Range("B2")
If Intersect(Target, rWatch) Is Nothing Then Exit Sub
For Each sSheet In Sheets(Array("B", "C", "D", "E"))
sSheet.Visible = sSheet.Name = rWatch.Value
Next sSheet
End Sub
'--------------------------------------------------------------
HTH
--
AP
> That didn't work. Also I have more sheets than 6 which I want to show.
> So if I put in cel B2 an "B" I want to show sheet A, B, G and H.
[quoted text clipped - 5 lines]
>
> Greets
blommerse@saz.nl - 09 Jun 2006 08:42 GMT
This is what I fill in:
'--------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rWatch As Range
Dim sSheet As Object
Set rWatch = Range("B9")
If Intersect(Target, rWatch) Is Nothing Then Exit Sub
For Each sSheet In Sheets(Array("TPG Post via CH", "Deutsche Post",
"Spring Royal Mail", "Select Mail", "TPG Post via Lettershop",
"Sandd"))
sSheet.Visible = sSheet.Name = rWatch.Value
Next sSheet
End Sub
'--------------------------------------------------------------
If I fill "Spring Royal Mail" in cell B2 in sheet A it used to be that
only sheet Spring Royal Mail apairs. And sheet "H" stay visible.
It's not working YET.
Greetings
Ardus Petus - 09 Jun 2006 08:51 GMT
Please send me your worbook as attachment at ardus.petus@laposte.net
HTH
--
AP
> This is what I fill in:
>
[quoted text clipped - 16 lines]
> It's not working YET.
> Greetings
Ardus Petus - 09 Jun 2006 10:26 GMT
You must use continuation lines _ for lines too long.
Here is the correctet workbook: http://cjoint.com/?gjlyLeRBRk
Cheers
--
AP
> Please send me your worbook as attachment at ardus.petus@laposte.net
>
[quoted text clipped - 22 lines]
>> It's not working YET.
>> Greetings
blommerse@saz.nl - 09 Jun 2006 12:37 GMT
Thank you so much,
Cheerio