Tabs not showing
Solved/Closed
Related:
- Tabs not showing
- Close all tabs chrome android - Guide
- How to delete icloud tabs - Guide
- Windows 7 task manager not showing tabs - Guide
- Make favorite tabs show up on startup safari - Guide
- How to reopen closed tabs - Guide
2 responses
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jun 8, 2010 at 04:14 AM
Jun 8, 2010 at 04:14 AM
The code does not match your data
let me try to explain the code as it is needed as original code was based on example. so lets first try to understand code
Sheets("June In").Visible = ((Sheets("June In").Name = Target) Or (Target = ""))
This line of code is deciding should it make "June In" tab be made visible or hidden
Sheets("June In").Visible : true or false. Makes it visible or hide
((Sheets("June In").Name = Target) Or (Target = "")) : Here it is being decided to make visible or false. It has two parts and if either part is true, then true is evaluated
A. Sheets("June In").Name = Target
B. Target = ""
In Part A, it is checking in the value of Target is same as name of the sheet "June In", which would be "June In". If is the case then True is evaluated
In Part B, it is checking if the value of Target was ""
In the same manner
Sheets("June Out").Visible = ((Sheets("June Out").Name = Target & "A") Or (Target = ""))
Sheets("June Out").Visible : same explanation as before
Sheets("June Out").Name = Target & "A" : This checks in the sheet name of "June Out", which would be "June out", is same as value of appended value of target and "A". So if Target was "June", this Target & "A" will be evaluated as "JuneA"
Target = "": Same as before
Hope now you see where you are making mistake
Change need.
1. Let target be equal to Month only like "June", instead of "June In"
2. For each Pair of sheet you need to have ( this is for JUNE only for example"
Sheets("June In").Visible = ((Sheets("June In").Name = Target & " In") Or (Target = ""))
Sheets("June Out").Visible = ((Sheets("June Out").Name = Target & " Out") Or (Target = ""))
let me try to explain the code as it is needed as original code was based on example. so lets first try to understand code
Sheets("June In").Visible = ((Sheets("June In").Name = Target) Or (Target = ""))
This line of code is deciding should it make "June In" tab be made visible or hidden
Sheets("June In").Visible : true or false. Makes it visible or hide
((Sheets("June In").Name = Target) Or (Target = "")) : Here it is being decided to make visible or false. It has two parts and if either part is true, then true is evaluated
A. Sheets("June In").Name = Target
B. Target = ""
In Part A, it is checking in the value of Target is same as name of the sheet "June In", which would be "June In". If is the case then True is evaluated
In Part B, it is checking if the value of Target was ""
In the same manner
Sheets("June Out").Visible = ((Sheets("June Out").Name = Target & "A") Or (Target = ""))
Sheets("June Out").Visible : same explanation as before
Sheets("June Out").Name = Target & "A" : This checks in the sheet name of "June Out", which would be "June out", is same as value of appended value of target and "A". So if Target was "June", this Target & "A" will be evaluated as "JuneA"
Target = "": Same as before
Hope now you see where you are making mistake
Change need.
1. Let target be equal to Month only like "June", instead of "June In"
2. For each Pair of sheet you need to have ( this is for JUNE only for example"
Sheets("June In").Visible = ((Sheets("June In").Name = Target & " In") Or (Target = ""))
Sheets("June Out").Visible = ((Sheets("June Out").Name = Target & " Out") Or (Target = ""))