Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA for Hiding Rows with Errors

Only have basic VBA knowledge and was hoping you guys could help me here. I
want some code to hide all rows that have errors (i.e. REF, div/0, etc.)

I figure this should be pretty easy but haven´t quite gotten it right....

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA for Hiding Rows with Errors

One way is to select the range to examine.
edit|goto|special
check Formulas (or Constants)
uncheck everything except errors
Then Format|row|hide

If you need a macro, then record one when you do it manually.

Wynn wrote:

Only have basic VBA knowledge and was hoping you guys could help me here. I
want some code to hide all rows that have errors (i.e. REF, div/0, etc.)

I figure this should be pretty easy but haven´t quite gotten it right....


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA for Hiding Rows with Errors

Great. Got it to do what I wanted. Thanks a lot. One more thing...is there a
way to use goto to select all rows with a given value (i.e. all of the cells
in a column that are equal to zero)?

"Dave Peterson" wrote:

One way is to select the range to examine.
edit|goto|special
check Formulas (or Constants)
uncheck everything except errors
Then Format|row|hide

If you need a macro, then record one when you do it manually.

Wynn wrote:

Only have basic VBA knowledge and was hoping you guys could help me here. I
want some code to hide all rows that have errors (i.e. REF, div/0, etc.)

I figure this should be pretty easy but haven´t quite gotten it right....


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA for Hiding Rows with Errors

Maybe you don't have to select them???

Could you apply data|filter|autofilter to just see the rows with 0's?

Then you could manipulate that visible data the way you want.

Wynn wrote:

Great. Got it to do what I wanted. Thanks a lot. One more thing...is there a
way to use goto to select all rows with a given value (i.e. all of the cells
in a column that are equal to zero)?

"Dave Peterson" wrote:

One way is to select the range to examine.
edit|goto|special
check Formulas (or Constants)
uncheck everything except errors
Then Format|row|hide

If you need a macro, then record one when you do it manually.

Wynn wrote:

Only have basic VBA knowledge and was hoping you guys could help me here. I
want some code to hide all rows that have errors (i.e. REF, div/0, etc.)

I figure this should be pretty easy but haven´t quite gotten it right....


--

Dave Peterson


--

Dave Peterson
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
Hiding Errors for formulas Kati Excel Worksheet Functions 3 October 15th 08 04:03 AM
Color alternate rows when after hiding selected rows Monk[_2_] Excel Worksheet Functions 6 June 7th 08 01:36 AM
Hiding Specific Rows Based on Values in Other Rows Chris Excel Worksheet Functions 1 November 2nd 06 08:21 PM
Hiding a button when hiding rows fergusor Excel Discussion (Misc queries) 2 August 10th 06 02:31 PM
hiding Rows and buttons/comboxes, over the rows Ctech[_116_] Excel Programming 1 March 21st 06 12:38 PM


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