Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I put both macros in 1?
I need a VBA line that checks whether lines are hidden or not, something like: Sub HOW_TO_DO? If Rows(Range("I109:I115").Select) = Hidden Then Show_Rows Else Hide_Rows End If ENd Sub Private Sub Hide_Rows() Range("I109:I115").Select Selection.EntireRow.Hidden = True Range("I116").Select End Sub Private Sub Show_Rows() Range("I105:U116").Select Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture End Sub TIA Martin |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use this code : Rows("1:5").EntireRow.Hidden = Not
Rows("1:5").EntireRow.Hidden Adjust row numbers in above line of code to suit your needs. Amit "Martin Los" wrote in message ... How can I put both macros in 1? I need a VBA line that checks whether lines are hidden or not, something like: Sub HOW_TO_DO? If Rows(Range("I109:I115").Select) = Hidden Then Show_Rows Else Hide_Rows End If ENd Sub Private Sub Hide_Rows() Range("I109:I115").Select Selection.EntireRow.Hidden = True Range("I116").Select End Sub Private Sub Show_Rows() Range("I105:U116").Select Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture End Sub TIA Martin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Status bar not visible in my .xlsx worksheets. | Excel Discussion (Misc queries) | |||
How to keep Status count visible? | Excel Worksheet Functions | |||
Variations in a sheet's Visible status | Excel Discussion (Misc queries) | |||
I want to return a value based on the status of a check box. If . | Excel Worksheet Functions | |||
Check calculation status | Excel Programming |