Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Create button to unhide rows directly below

I have at subject titles that have sub information that totals into the
subject row. I want to create a button to click to open the hidden rows to
view the information in those rows.
Sounds simple!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Create button to unhide rows directly below

hi,
it is. but you didn't say which rows or how many or if they vary in number.
but....from the tool box, drop a command button on your sheet. while in
design mode, right click the button. from the pop up window, select
properties.
change the name of the button to Cmd1. close the property window.
while still in design mode, right click the button again. from the popup
window, select view code. paste this code into the code window...

Private Sub Cmd1_Click()

If Rows("3:4").Hidden = True Then '<change row reference to suit your needs
Rows("3:4").Hidden = False
Cmd1.Caption = "Hide"
Else
Rows("3:4").Hidden = True
Cmd1.Caption = "Unhide"
End If

End Sub

clicking the button with hide the rows. clicking it again with unhide the
rows.

regards
FSt1
"create button to unhide rows" wrote:

I have at subject titles that have sub information that totals into the
subject row. I want to create a button to click to open the hidden rows to
view the information in those rows.
Sounds simple!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hide or unhide rows with button Bea Excel Discussion (Misc queries) 15 September 19th 07 07:03 PM
(Unsuccessfully!) Unhiding Rows in Excel 2003 [email protected] Excel Worksheet Functions 6 May 24th 06 08:17 PM
unlock hidden rows when 'unhide' is greyed out? xela Excel Worksheet Functions 1 February 21st 06 02:16 AM
Unhide rows [email protected] Excel Discussion (Misc queries) 3 December 14th 04 05:28 PM
Why cannot I unhide the hidden rows ? Jim Edwards Excel Discussion (Misc queries) 2 December 4th 04 04:38 PM


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"