Hiding a row across multiple sheets

frankday

Board Regular
Joined
Apr 13, 2012
Messages
103
I am trying to hide row 129 across these sheets. It works great but when done all the sheets are high lighted. I want it to return to sheet "Chart of Accounts" only. It doesn't mater what cell. Any help would be great. Thanks

Sub Line129callapes()


Sheets(Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")).Select
Rows(129).EntireRow.Hidden = True
Range("A144") = 0
Range("B144").Select

End Sub
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I never open other people's files.

You asked for a script and I provided what you asked for.
You then modified my script to another row. But now because you have other scripts that hide and unhide other rows the two scripts are working against each other I guess.

Looking at you file would not help me.

I know on this forum there are lots of people wanting to hide and unhide rows.

This can become very confusing to me at least. Hide this row if that happens and unhide this row if this happens.

So I normally leave those type questions to others here on the forum to answer.

Your original question seemed very simple so I answered it for you.

But now it seems there are more of these hide and unhide scripts in your sheet.

So I would prefer to let others here on the forum answer this new question of yours.
I will continue to monitor this thread to see how things work out for you.
Sorry but this is now beyond my knowledgebase.
 
Upvote 0
when I hide a row using the "my sheets" code that was posted yesterday by board regular and then I use the code that hides multiple sheets, when I unhide using the multiple sheets code it also unhides the row that was hidden by "my sheets" code.

Which rows do you want to remain hidden?
 
Upvote 0
I want to keep row 7 hidden on every sheet even when I run the second Code. Then I can run the first code with ".Rows(7).Hidden = False" to unhide row 7

I have a hidden row inside hidden rows.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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