Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hide/Unhide rows

Hi,
New to VBA.
Want to unhide rows based on a YES or NO response.
Any help appreciated.
Bob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Hide/Unhide rows

You will need to set the rows().hidden property to false.

Ask the user which row

vtemp = msgbox "which row do you want to unhide


Perform the hidden = false method
if isnumneric (vtemp) then
Rows(vtemp & ":" & vtemp ).Hidden = false


Regards,

Stewart Rogers

"lennyx2" wrote:

Hi,
New to VBA.
Want to unhide rows based on a YES or NO response.
Any help appreciated.
Bob

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hide/Unhide rows

Although your answer is most likely correct, i'm a bit confused with response
probably due to my limited knowledge of VBA. Can you give it another shot in
layman's terms? Thanks.

"Datasort" wrote:

You will need to set the rows().hidden property to false.

Ask the user which row

vtemp = msgbox "which row do you want to unhide


Perform the hidden = false method
if isnumneric (vtemp) then
Rows(vtemp & ":" & vtemp ).Hidden = false


Regards,

Stewart Rogers

"lennyx2" wrote:

Hi,
New to VBA.
Want to unhide rows based on a YES or NO response.
Any help appreciated.
Bob

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Hide/Unhide rows

Each column and row has a hidden property. You must change that property to
false if you want to display the row:

Example: Unhide row 2

Rows ("2:2").hidden = false

You asked for the ability of the user to tell you which row so I used a
message box to ask the user which row. See example below for the message box.


"lennyx2" wrote:

Although your answer is most likely correct, i'm a bit confused with response
probably due to my limited knowledge of VBA. Can you give it another shot in
layman's terms? Thanks.

"Datasort" wrote:

You will need to set the rows().hidden property to false.

Ask the user which row

vtemp = msgbox "which row do you want to unhide


Perform the hidden = false method
if isnumneric (vtemp) then
Rows(vtemp & ":" & vtemp ).Hidden = false


Regards,

Stewart Rogers

"lennyx2" wrote:

Hi,
New to VBA.
Want to unhide rows based on a YES or NO response.
Any help appreciated.
Bob

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
Enabling option „Format rows“ to hide/unhide rows using VBA-code? ran58 Excel Discussion (Misc queries) 0 July 28th 09 03:46 PM
How to Hide and Unhide Rows Jonno Excel Discussion (Misc queries) 2 June 9th 09 04:34 PM
How to hide and unhide Rows & Columns Aarif Excel Worksheet Functions 3 March 23rd 06 05:19 AM
Hide Unhide Rows blackstar Excel Discussion (Misc queries) 2 February 6th 06 09:36 PM
How to hide and unhide rows Michael168[_10_] Excel Programming 1 October 6th 03 11:52 AM


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

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

About Us

"It's about Microsoft Excel"