ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro to unhide row (https://www.excelbanter.com/excel-programming/345066-macro-unhide-row.html)

Benjamin

macro to unhide row
 
Could someone help me with some code to unhide the first row of a worksheet?
Ideally I would like to attach to a button.

Thank You.

Don Guillett[_4_]

macro to unhide row
 
Have you tried recording a macro while doing this manually

--
Don Guillett
SalesAid Software

"Benjamin" wrote in message
...
Could someone help me with some code to unhide the first row of a

worksheet?
Ideally I would like to attach to a button.

Thank You.




Ron de Bruin

macro to unhide row
 
Hi Benjamin

Sub test()
With Sheets("sheet1")
.Range("A1").EntireRow.Hidden = False
End With
End Sub

You can assign this macro to a Button from the Forms Toolbar if you want

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Benjamin" wrote in message ...
Could someone help me with some code to unhide the first row of a worksheet?
Ideally I would like to attach to a button.

Thank You.




Benjamin

macro to unhide row
 
I'll give that a try. Thanks.

"Don Guillett" wrote:

Have you tried recording a macro while doing this manually

--
Don Guillett
SalesAid Software

"Benjamin" wrote in message
...
Could someone help me with some code to unhide the first row of a

worksheet?
Ideally I would like to attach to a button.

Thank You.





PCLIVE

macro to unhide row
 
If you want an hidden/unhidden macro, this will work.

Sub HideUnhideRow()
If Range("A1").EntireRow.Hidden = True Then Range("A1").EntireRow.Hidden =
False Else: Range("A1").EntireRow.Hidden = True
End Sub

May not be the best way, but gets the job done.
HTH,
Paul

"Benjamin" wrote in message
...
Could someone help me with some code to unhide the first row of a
worksheet?
Ideally I would like to attach to a button.

Thank You.





All times are GMT +1. The time now is 12:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com