I have the following macro for hiding/unhiding a group of rows based on whether or not they contain empty text strings. I was hoping to insert a button that would hide or unhide the rows each time you hit it. However, I haven't done much work with buttons and assigning controls. Any help would be greatly appreciated.
Thanks!
Thanks!
Code:
Sub HideRows()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
Dim cell As Range<o:p></o:p>
<o:p> </o:p>
For Each cell In ActiveSheet.Range("B114:B143 ")<o:p></o:p>
If cell.Value = "" Then<o:p></o:p>
cell.EntireRow.Hidden = True<o:p></o:p>
Else: cell.EntireRow.Hidden = False<o:p></o:p>
End If<o:p></o:p>
Next cell<o:p></o:p>
<o:p> </o:p>
End Sub