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 a row in Excel

Hi All,

I would like to hide or unhide a row in an Excel
sheet programatically. I am not good in VBA. Please tell
me how to do that.

Thanks in advance


Regards,
Mohan.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Hide/Unhide a row in Excel

rows("10:10").entirerow.hidden=true
rows("10:10").entirerow.hidden=false

The best way of finding out these things is to turn on the macro recorder,
do what you want, stop the recording then look at the source. You will
learn a huge amount by doing this.


--

Regards,


Bill Lunney
www.billlunney.com

"Mohanasundaram" wrote in message
...
Hi All,

I would like to hide or unhide a row in an Excel
sheet programatically. I am not good in VBA. Please tell
me how to do that.

Thanks in advance


Regards,
Mohan.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Hide/Unhide a row in Excel

Mohan,

Try the following to hide row 4.

ActiveSheet.Rows(4).Hidden = True
'or
ActiveSheet.Range("A4").EntireRow.Hidden = True

Change True to False to make the row visible.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Mohanasundaram" wrote in message
...
Hi All,

I would like to hide or unhide a row in an Excel
sheet programatically. I am not good in VBA. Please tell
me how to do that.

Thanks in advance


Regards,
Mohan.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Hide/Unhide a row in Excel

Thanks a lot

-----Original Message-----
Mohan,

Try the following to hide row 4.

ActiveSheet.Rows(4).Hidden = True
'or
ActiveSheet.Range("A4").EntireRow.Hidden = True

Change True to False to make the row visible.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Mohanasundaram" wrote in

message
...
Hi All,

I would like to hide or unhide a row in an Excel
sheet programatically. I am not good in VBA. Please tell
me how to do that.

Thanks in advance


Regards,
Mohan.



.

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
Excel 2007 - Hide & Unhide Columns/Rows leahl Excel Discussion (Misc queries) 8 November 5th 08 09:17 PM
Excel Hide/Unhide Carol Mac Excel Discussion (Misc queries) 2 September 28th 06 02:25 PM
How do I hide and unhide worksheets in Excel 2007? Wayne from Ottawa Canada Excel Discussion (Misc queries) 0 August 14th 06 02:54 AM
How do I hide or unhide row and column heading in Excel? Maharaj Excel Worksheet Functions 1 July 25th 06 06:02 PM
Excel 97 hide unhide problem Catt Excel Discussion (Misc queries) 2 June 1st 06 04:39 PM


All times are GMT +1. The time now is 01:45 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"