Try to fix the code in this manner:
Sub CheckBox1_Click()
toggleColumns
End Sub
Sub toggleColumns()
Dim ws As Worksheet
... etc ...
End Sub
To hide a row, try this: ws.Rows(20).Hidden = shouldBeHidden
.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In the past I have used a macro to toggle columns. I created a new spread sheet and have tried using the same macro. I'm doing something wrong.
I'm new to this, if someone can direct me in the right direction.
[
[
I want to hide columns G, K, O, S, W, AA, and, AE
After completing this my next step is to add a check box that will hide rows. What do I need to do to convert the macro to toggle rows?
Thank you in advance.
Try to fix the code in this manner:
Sub CheckBox1_Click()
toggleColumns
End Sub
Sub toggleColumns()
Dim ws As Worksheet
... etc ...
End Sub
To hide a row, try this: ws.Rows(20).Hidden = shouldBeHidden
.