Hiding rows based on the value of data in a column

Cliffork

New Member
Joined
Feb 12, 2020
Messages
21
Office Version
  1. 365
I use an excel sheet to take data on instruments I calibrate. There are three different types of instruments that I calibrate, so I have certain denominators that tell them apart, and thus tell what lines I need to test for this particular unit.

I'm trying to make it so that cell V3 reads if the instruments serial number contains a D, and if it does, I want it to automatically hide rows 43-48 (and others once I'm done creating the workflow)

I'm trying to do this by making V43-V48 show 0 if V3 is FALSE, and 1 if TRUE. I have code that will hide all rows with a 0 in column V.

The problem I'm having now though, is that the code seems to have made undo/redo unusable, which is pretty annoying. The row hiding works fine though.

I would like to either A. fix the problem of not being able to undo anymore, or write new code to meet the same goal in a different way. Suggestions?

Here is my VBA code and a mini-sheet.

Private Sub Worksheet_Calculate()
'hides/unhides HCH gases from the final inspection sheet. V3 is true if it is an HCH
Dim c As Range
Application.EnableEvents = False
For Each c In Range("V1:V200")

If c.Value = "0" Then
Rows(c.Row & ":" & c.Row).EntireRow.Hidden = True
Else
Range(c.Row & ":" & c.Row).EntireRow.Hidden = False
End If

Next
Application.EnableEvents = True
End Sub


cal form test.xlsm
ABCDEFGHIJKLMNOPQRSTUV
1Envision Final Inspection and Repairs Checklist
2Date:Barometric?TRUE
3SN:dD Unit?TRUE
4RMA:0500-
5Tech:
6
7
8YesNoGeneral Inspection Points
9Battery life indicator working? Number of Battery Bars:
10Does the unit appear to charge when plugged in?
11Has the firmware been upgraded to 1.31?
12Have the PCB screws been tightened down?
13Does the bluetooth connection work with a Nomad?
14Is the Luer partical filter in good condition?
15
16YesNoPressure Related Inspection Points
17Does the entire meter pass a pressure test?
18
19Pressure Inspection
20Please check the pressure readings in the Pressure Calibration screen.
21
22ZeroesPressure Readings
23LowHighLowHigh
24SystemSystem
25StaticStatic
26DifferentalDifferential
27YesNo
28Do all of the pressure sensors read correctly and hold a vacuum?
29Does the Impact Port hold a vacuum?
30X Does the Barometric Pressure Sensor read correctly at room pressure?ENVTestodifference
31''Hgmbarmbar''Hg0.0
32Gas Readings0.00.0
33Please check gas qualities with the meter in the analyze screen.
34CH4 %CO2 %O2 %Bal %
3520.9 O2 Reading 100
3699.99 N2 Reading 100
3750/35% Reading100
3815/15 Reading 100
3940/60 Reading100
40100 CO2 Reading100
431
44H2 %CO ppmH2S ppmBal %1
452% H2 Reading1001
4650% H2 Reading1001
471500ppm CO Reading1001
48500ppm H2S Reading1001
Final Insp.
Cell Formulas
RangeFormula
V2V2=OR(IF(ISNUMBER(SEARCH("B", B3)), TRUE, FALSE),IF(ISNUMBER(SEARCH("D", B3)), TRUE, FALSE))
V3V3=IF(ISNUMBER(SEARCH("D",B3)),TRUE,FALSE)
B3B3=('Customer Info'!B15)
B4B4=('Customer Info'!B13)
A30A30=IF(AND(N31>-2,N31<2),"X","")
B30B30=IF(AND(N31>-2,N31<2),"","X")
C30C30=IF(ISNUMBER(SEARCH("TRUE",V2)),"Does the Barometric Pressure Sensor read correctly at room pressure?", "")
J30J30=IF(ISNUMBER(SEARCH("TRUE",V2)),"ENV", "")
J31J31=IF(ISNUMBER(SEARCH("TRUE",V2)),"''Hg", "")
L30L30=IF(ISNUMBER(SEARCH("TRUE",V2)),"Testo", "")
L31L31=IF(ISNUMBER(SEARCH("TRUE",V2)),"mbar", "")
N30N30=IF(ISNUMBER(SEARCH("TRUE",V2)),"difference", "")
N31N31=IF(ISNUMBER(SEARCH("TRUE",V2)),L32-(K32-J33), "")
K31K31=IF(ISNUMBER(SEARCH("TRUE",V2)),"mbar", "")
K32K32=IF(ISNUMBER(SEARCH("TRUE",V2)),J32*33.8639,"")
M31M31=IF(ISNUMBER(SEARCH("TRUE",V2)),"''Hg", "")
M32M32=IF(ISNUMBER(SEARCH("TRUE",V2)),L32/33.8639, "")
G35:G40,G45:G48G35=100-SUM(D35:F35)
V43V43=IF(V3=TRUE,1,0)
V44V44=IF(V3=TRUE,1,0)
V45V45=IF(V3=TRUE,1,0)
V46V46=IF(V3=TRUE,1,0)
V47V47=IF(V3=TRUE,1,0)
V48V48=IF(V3=TRUE,1,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B30Expression=$V$2=FALSEtextNO
D48Cellcontains a blank value textNO
D48Cell Valuebetween 95 and 105textNO
D48Cell Value<95textNO
D48Cell Value>105textNO
E48Cellcontains a blank value textNO
E48Cell Valuebetween 0 and 0.1textNO
E48Cell Value>0.02textNO
E48Cell Value<-0.02textNO
D47Cellcontains a blank value textNO
D47Cell Valuebetween 0 and 0.1textNO
D47Cell Value>0.02textNO
D47Cell Value<-0.02textNO
F46:F48Cell Value>0.1textNO
F46:F48Cellcontains a blank value textNO
F46:F48Cell Valuebetween 0 and 0.1textNO
F45Cell Value>0.1textNO
D45:F45Cellcontains a blank value textNO
F45Cell Valuebetween 0 and 0.1textNO
D45:E45Cell Value>16.5textNO
D45:E45Cell Value<13.5textNO
D45:E45Cell Valuebetween 13.5 and 16.5textNO
D46:E46,E47Cellcontains a blank value textNO
E47Cell Valuebetween 95 and 105textNO
E47Cell Value<95textNO
E46Cell Value<57textNO
E46Cell Value>63textNO
D46Cell Value<37textNO
D46Cell Value>43textNO
E47Cell Value>105textNO
E46Cell Valuebetween 57 and 63textNO
D46Cell Valuebetween 37 and 43textNO
D40Cellcontains a blank value textNO
D40Cell Valuebetween 0 and 0.1textNO
D40Cell Value>0.1textNO
D40Cell Value<0textNO
F39:F41Cellcontains a blank value textNO
F40Cell Value>0.1textNO
F40Cell Value<-0.1textNO
F39Cell Value>0.1textNO
F39Cell Value<-0.1textNO
F39Cell Value<20.7textNO
F39Cell Value>21.1textNO
F39Cell Valuebetween 20.7 and 21.1textNO
F40Cell Valuebetween 0 and 0.1textNO
A30Expression=ISBLANK($J$32)textNO
B30Expression=$V$2=TRUEtextNO
A30:B30Expression=$V$2=TRUEtextNO
A30:B30Expression=$V$2=TRUEtextNO
N30Expression=$V$2=TRUEtextNO
L32,J32Expression=$V$2=TRUEtextNO
J30:M32Expression=$V$2=TRUEtextNO
B9Expression=IF($A$9:$B$9,"X","")textNO
N31Cellcontains a blank value textNO
N31Cell Value=0textNO
N31Cell Valuebetween -2 and 2textNO
N31Cell Value<-2textNO
D35:F38Cellcontains a blank value textNO
F37Cell Value>0.1textNO
F37Cell Value<-0.1textNO
F36Cell Value>0.1textNO
F36Cell Value<-0.1textNO
D35:E36,F38,D36:F36Cell Valuebetween 0 and 0.1textNO
D35:E36Cell Value>0.02textNO
F38Cell Value>0.1textNO
F38Cell Value<0textNO
E37Cell Value>35.3textNO
J24:J26,I25:I26,E24:E26,D25:D26Cellcontains a blank value textNO
I26Cell Value>4.53textNO
I26Cell Value<4.47textNO
J26Cell Value>20.1textNO
J26Cell Value<19.9textNO
J26Cell Valuebetween 19.9 and 20.1textNO
I26Cell Valuebetween 4.47 and 4.53textNO
I25Cell Value<-4.53textNO
I25Cell Value>-4.47textNO
I25Cell Valuebetween -4.47 and -4.53textNO
J24:J25Cell Valuebetween -99 and -101textNO
D25:D26,E26Cell Value<-0.1textNO
D25:D26,E26Cell Value>0.1textNO
D25:D26,E26Cell Valuebetween -0.1 and 0.1textNO
E24Cell Valuebetween -0.65 and 0.65textNO
E25Cell Valuebetween -0.65 and 0.65textNO
E24:E25Cell Value<-0.65textNO
E24:E25Cell Value>0.65textNO
D39:E39,D41,E40Cellcontains a blank value textNO
E40Cell Valuebetween 98 and 102textNO
E40Cell Value<98textNO
E39Cell Value<59.5textNO
E39Cell Value>60.5textNO
D39Cell Value<39.5textNO
D39Cell Value>40.5textNO
E40Cell Value>102textNO
E39Cell Valuebetween 59.5 and 60.5textNO
E37Cell Value<34.7textNO
D38:E38Cell Value>15.3textNO
D38:E38Cell Value<14.7textNO
F35:F36Cell Value<20.7textNO
F35:F36Cell Value>21.1textNO
D37Cell Value<49.7textNO
D37Cell Value>50.3textNO
D38:E38Cell Valuebetween 14.7 and 15.3textNO
F35:F36Cell Valuebetween 20.7 and 21.1textNO
D35:E36Cell Value<-0.02textNO
F37Cell Valuebetween 0 and 0.1textNO
E37Cell Valuebetween 34.7 and 35.3textNO
D37Cell Valuebetween 49.7 and 50.3textNO
J24:J25Cell Value<-101textNO
D39Cell Valuebetween 39.5 and 40.5textNO
N31Cell Value>2textNO
J24:J25Cell Value>-99textNO
Cells with Data Validation
CellAllowCriteria
K32Whole numberbetween (M32-K32)-2 and (M32-K32)+2
L32Any value
D24:J26Any value
B28:B30Whole numberbetween 1 and 2
B17Whole numberbetween 101 and 102
B9:B14Whole numberbetween 101 and 102
I9List='Drop Down lists'!$D$1:$D$8
B5:C5List='Drop Down lists'!$A$1:$A$7
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I made an easier to view version since the mini sheet makes my formatting look horrible. It just uses column "i" in this version to make it all closer
Book2
ABCDEFGHI
1Date:Barometric?TRUE
2SN:dD Unit?TRUE
3RMA:0500-
4Tech:
5
6
7Gas Readings
8
9CH4 %CO2 %O2 %Bal %
1020.9 O2 Reading 100
1199.99 N2 Reading 100
1250/35% Reading100
1315/15 Reading 100
1440/60 Reading100
15100 CO2 Reading100
16100 CH4 Reading100
1711% O2 Reading100
181
19H2 %CO ppmH2S ppmBal %1
202% H2 Reading1001
2150% H2 Reading1001
221500ppm CO Reading1001
23500ppm H2S Reading1001
Sheet1
Cell Formulas
RangeFormula
I1I1=OR(IF(ISNUMBER(SEARCH("B", B2)), TRUE, FALSE),IF(ISNUMBER(SEARCH("D", B2)), TRUE, FALSE))
I2I2=IF(ISNUMBER(SEARCH("D",B2)),TRUE,FALSE)
B3B3=('[cal form test.xlsm]Customer Info'!B12)
G10:G17,G20:G23G10=100-SUM(D10:F10)
I18I18=IF(I2=TRUE,1,0)
I19I19=IF(I2=TRUE,1,0)
I20I20=IF(I2=TRUE,1,0)
I21I21=IF(I2=TRUE,1,0)
I22I22=IF(I2=TRUE,1,0)
I23I23=IF(I2=TRUE,1,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D23Cellcontains a blank value textNO
D23Cell Valuebetween 95 and 105textNO
D23Cell Value<95textNO
D23Cell Value>105textNO
E23Cellcontains a blank value textNO
E23Cell Valuebetween 0 and 0.1textNO
E23Cell Value>0.02textNO
E23Cell Value<-0.02textNO
D22Cellcontains a blank value textNO
D22Cell Valuebetween 0 and 0.1textNO
D22Cell Value>0.02textNO
D22Cell Value<-0.02textNO
F21:F23Cell Value>0.1textNO
F21:F23Cellcontains a blank value textNO
F21:F23Cell Valuebetween 0 and 0.1textNO
F20Cell Value>0.1textNO
D20:F20Cellcontains a blank value textNO
F20Cell Valuebetween 0 and 0.1textNO
D20:E20Cell Value>16.5textNO
D20:E20Cell Value<13.5textNO
D20:E20Cell Valuebetween 13.5 and 16.5textNO
D21:E21,E22Cellcontains a blank value textNO
E22Cell Valuebetween 95 and 105textNO
E22Cell Value<95textNO
E21Cell Value<57textNO
E21Cell Value>63textNO
D21Cell Value<37textNO
D21Cell Value>43textNO
E22Cell Value>105textNO
E21Cell Valuebetween 57 and 63textNO
D21Cell Valuebetween 37 and 43textNO
F17Cellcontains a blank value textNO
F17Cell Valuebetween 10.8 and 11.2textNO
F17Cell Value<10.8textNO
F17Cell Value>11.2textNO
D17:E17Cellcontains a blank value textNO
D17:E17Cell Valuebetween 0 and 0.1textNO
D17:E17Cell Value>0.02textNO
D17:E17Cell Value<-0.02textNO
D15Cellcontains a blank value textNO
D15Cell Valuebetween 0 and 0.1textNO
D15Cell Value>0.1textNO
D15Cell Value<0textNO
E16Cellcontains a blank value textNO
E16Cell Valuebetween 0 and 0.1textNO
E16Cell Value>0.1textNO
E16Cell Value<0textNO
F14:F16Cellcontains a blank value textNO
F15Cell Value>0.1textNO
F15Cell Value<-0.1textNO
F14Cell Value>0.1textNO
F14Cell Value<-0.1textNO
F16,F14Cell Valuebetween 0 and 0.1textNO
F16Cell Value>0.1textNO
F16Cell Value<0textNO
F14Cell Value<20.7textNO
F14Cell Value>21.1textNO
F14Cell Valuebetween 20.7 and 21.1textNO
F15Cell Valuebetween 0 and 0.1textNO
D10:F13Cellcontains a blank value textNO
F12Cell Value>0.1textNO
F12Cell Value<-0.1textNO
F11Cell Value>0.1textNO
F11Cell Value<-0.1textNO
D10:E11,F13,F11Cell Valuebetween 0 and 0.1textNO
D10:E11Cell Value>0.02textNO
F13Cell Value>0.1textNO
F13Cell Value<0textNO
E12Cell Value>35.3textNO
D14:E14,D16,E15Cellcontains a blank value textNO
D16Cell Valuebetween 98 and 102textNO
D16Cell Value<98textNO
E15Cell Valuebetween 98 and 102textNO
E15Cell Value<98textNO
E14Cell Value<59.5textNO
E14Cell Value>60.5textNO
D14Cell Value<39.5textNO
D14Cell Value>40.5textNO
D16Cell Value>102textNO
E15Cell Value>102textNO
E14Cell Valuebetween 59.5 and 60.5textNO
E12Cell Value<34.7textNO
D13:E13Cell Value>15.3textNO
D13:E13Cell Value<14.7textNO
F10:F11Cell Value<20.7textNO
F10:F11Cell Value>21.1textNO
D12Cell Value<49.7textNO
D12Cell Value>50.3textNO
D13:E13Cell Valuebetween 14.7 and 15.3textNO
F10:F11Cell Valuebetween 20.7 and 21.1textNO
D10:E11Cell Value<-0.02textNO
F12Cell Valuebetween 0 and 0.1textNO
E12Cell Valuebetween 34.7 and 35.3textNO
D12Cell Valuebetween 49.7 and 50.3textNO
D14Cell Valuebetween 39.5 and 40.5textNO
 
Upvote 0
As soon as VBA makes any changes to a sheet, including hiding/unhiding rows, you will loose the undo stack.
So you either use VBA & loose the undo, or you do it manually & keep the undo.
 
Upvote 0
As soon as VBA makes any changes to a sheet, including hiding/unhiding rows, you will loose the undo stack.
So you either use VBA & loose the undo, or you do it manually & keep the undo.
That can't be true. I have a dozen other VBA codes in this same workbook and I've always been able to undo until I added this one today. See below.

This exact sheet has code that hides cells in the next sheet tab, it just didn't seem to want to work on rows in the same sheet.

If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "H63" Then
With Sheets("Cal Form")
If Target.Value = "x" Or Target.Value = "X" Then
.Rows(3).Hidden = True
.Rows(4).Hidden = True
.Rows(5).Hidden = False
.Rows(6).Hidden = False
Else
.Rows(6).Hidden = True
.Rows(5).Hidden = True
.Rows(4).Hidden = False
.Rows(3).Hidden = False
End If
End With
End If
 
Upvote 0
Is that in a calculate event?
 
Upvote 0
Nope, that code wipes the undo stack when I run it & change the value in H63
In my backup copy of the older version, this is the full VBA code, and the entire mini sheet posted below. It works fine for me.
Not sure if maybe it is different because it is changing something on a different sheet?

Private Sub Worksheet_change(ByVal Target As Range)


If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "K78" Then
With Sheets("Repair Summary")
If Target.Value = "x" Or Target.Value = "X" Then
.Rows(15).Hidden = True
.Rows(16).Hidden = False
Else
.Rows(15).Hidden = False
.Rows(16).Hidden = True
End If
End With
End If


If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "H59" Then
With Sheets("Cal Form")
If Target.Value = "x" Or Target.Value = "X" Then
.Rows(3).Hidden = True
.Rows(4).Hidden = True
.Rows(5).Hidden = False
.Rows(6).Hidden = False
Else
.Rows(6).Hidden = True
.Rows(5).Hidden = True
.Rows(4).Hidden = False
.Rows(3).Hidden = False
End If
End With
End If


End Sub
v1.02.06.xlsm
ABCDEFGHIJKL
1Envision Final Inspection and Repairs Checklist
2Date:
3SN:0
4RMA:0500-
5Tech:
6
7
8YesNoGeneral Inspection Points
9Battery life indicator working? Number of Battery Bars:
10Does the unit appear to charge when plugged in?
11Has the firmware been upgraded to 1.31?
12Have the PCB screws been tightened down?
13Does the bluetooth connection work with a Nomad?
14Is the Luer partical filter in good condition?
15
16YesNoPressure Related Inspection Points
17Does the entire meter pass a pressure test?
18
19Pressure Inspection
20Please check the pressure readings in the Pressure Calibration screen.
21
22ZeroesPressure Readings
23LowHighLowHigh
24SystemSystem
25StaticStatic
26DifferentalDifferential
27YesNo
28Do all of the pressure sensors read correctly and hold a vacuum?
29Does the Impact Port hold a vacuum?
30 X   
31   
32Gas Readings 
33Please check gas qualities with the meter in the analyze screen.
34CH4 %CO2 %O2 %Bal %
3520.9 Reading 100
3699.99 N2 Reading 100
3750 / 35 Reading 100
3815/15 Reading 100
3940/60 Reading100
40100 CO2 Reading100
41100 CH4 Reading100
43
44YesNo
45Does the unit pass an O2 intrusion test?
46
47
48Flow Test
49The flow count when pulling against 138" of vacuum
50
51
52The amount of vacuum the pump was able to pull against before the alarm:
53
54
55Which alarm was given?
56
57
58Please check in the utilities screen the following
59Factory Calibration Date←Update to Zoho(C2)
60Meter Temperature
61Firmware Version
63List Meter Error Conditions
64
65YesNo
66Are the pressure sensors still reading close to 0" without pressure being applied?
67Have the G and E command outputs on Terraterm been captured?40°F
70Did the customer approve XXX thermister calibration?
71  
72Old Serial #New Serial #
73CH4
74CO2
75O2
76Batt.
77
78Solution(EEW's description):
79
80Please ensure the following is included with the meter:0
81
82 
83Closed Meter Inspection PointsChecked
84Run a pressure test
85Check to make sure pressure sensors read correctly
86See if gas sensors are in their ranges
87Does the meter still appear to charge?
88Are the Void stickers installed on the meter?
89
90Notes: 
91
92Tech Signature: Date:
Final Insp.
Cell Formulas
RangeFormula
B3B3=('Customer Info'!B15)
B4B4=('Customer Info'!B13)
A30A30=IF(AND(N31>-2,N31<2),"X","")
B30B30=IF(AND(N31>-2,N31<2),"","X")
C30C30=IF(ISNUMBER(SEARCH("yes",V30)),"Does the Barometric Pressure Sensor read correctly at room pressure?", "")
J30J30=IF(ISNUMBER(SEARCH("TRUE",V30)),"ENV", "")
J31J31=IF(ISNUMBER(SEARCH("TRUE",V30)),"''Hg", "")
L30L30=IF(ISNUMBER(SEARCH("TRUE",V30)),"Testo", "")
L31L31=IF(ISNUMBER(SEARCH("TRUE",V30)),"mbar", "")
K31K31=IF(ISNUMBER(SEARCH("TRUE",V30)),"mbar", "")
K32K32=IF(ISNUMBER(SEARCH("TRUE",V30)),J32*33.8639,"")
G35:G41G35=100-SUM(D35:F35)
C71C71=IF(ISNUMBER(SEARCH("X",'Final Insp.'!A70)),"REMINDER: Print the thermister certification to PDF in the customers thermister folder.","")
D80D80='Customer Info'!B20
D82D82=IF(ISNUMBER(SEARCH("Waste Management",'Customer Info'!B3)),"REMINDER: WM meters ship on our account with 2-day shipping","")
D90D90=IF(ISNUMBER(SEARCH("Waste Management",'Customer Info'!B3)),"REMINDER: Send temperature probe certification.","")
 
Upvote 0
In my backup copy of the older version, this is the full VBA code, and the entire mini sheet posted below. It works fine for me.
Not sure if maybe it is different because it is changing something on a different sheet?

Private Sub Worksheet_change(ByVal Target As Range)


If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "K78" Then
With Sheets("Repair Summary")
If Target.Value = "x" Or Target.Value = "X" Then
.Rows(15).Hidden = True
.Rows(16).Hidden = False
Else
.Rows(15).Hidden = False
.Rows(16).Hidden = True
End If
End With
End If


If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "H59" Then
With Sheets("Cal Form")
If Target.Value = "x" Or Target.Value = "X" Then
.Rows(3).Hidden = True
.Rows(4).Hidden = True
.Rows(5).Hidden = False
.Rows(6).Hidden = False
Else
.Rows(6).Hidden = True
.Rows(5).Hidden = True
.Rows(4).Hidden = False
.Rows(3).Hidden = False
End If
End With
End If


End Sub

Nope, that code wipes the undo stack when I run it & change the value in H63
I should mention too, that if I put an X in cell H63 I cannot undo the X, but if I type hello in cell H64 I am able to undo that. That is an important distinction as well.
 
Upvote 0
In case anyone else looks at this and needs an answer, I got it to work, albeit not quite in the prettiest way. For some reason my other code only works when hiding rows in a different sheet. I can still use undo on any cells except the cell my code calls out as the target address.

Private Sub Worksheet_change(ByVal Target As Range)
' hides rows 43-48 on the final inspection page when V3 is false
If Target.CountLarge > 1 Then Exit Sub
If Target.Address(0, 0) = "V3" Then
With Sheets("Final Insp.")
If Target.Value = "TRUE" Then
.Rows(43).Hidden = False
.Rows(44).Hidden = False
.Rows(45).Hidden = False
.Rows(46).Hidden = False
.Rows(47).Hidden = False
.Rows(48).Hidden = False
Else
.Rows(43).Hidden = True
.Rows(44).Hidden = True
.Rows(45).Hidden = True
.Rows(46).Hidden = True
.Rows(47).Hidden = True
.Rows(48).Hidden = True
End If
End With
End If

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top