LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Doesn't work as it SHOULD .. Rows.Hidden /with SpecialCells

Hello genious,

I have a problem. I want to show the rows where a formula in A:A make a
number instead of "". I want to do this in the range with name
"rngname_rows" but always want to show the rows 6, 209, 412 and 615 within
the named range. Here is what I try to do:

Sub ShowNumRows

Rows.Hidden = False
Range("RNGNAME_ROWS").SpecialCells(xlCellTypeFormu las, 1).Rows.Hidden =
False
Application.Union(Rows(6), Rows(209), Rows(412), Rows(615)).EntireRow.Hidden
= False

End Sub


To test the parts:
Selecting right rows work fine with:
Range("RNGNAME_ROWS").SpecialCells(xlCellTypeFormu las, 1).Rows.Select
Application.Union(Rows(6), Rows(209), Rows(412), Rows(615)).Rows.Select

Why doesn't it work with hiding all cells and then just show the one I want?
What can I do?

Please help me,

I really can't see what is wrong!

/Gunnar


 
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
Work around to SpecialCells(xlCellTypeBlanks)... DanF Excel Discussion (Misc queries) 7 June 29th 08 07:36 AM
=ROW-1, =SUBTOTAL(3,$B$2:$B2) don't work in hidden rows. StargateFan[_3_] Excel Programming 8 February 25th 06 06:58 PM
VBA ON ERROR does not work with SPECIALCELLS Felix Excel Discussion (Misc queries) 2 April 14th 05 10:43 PM
Help to hide rows, SpecialCells(xlCellTypeBlanks) doesn't work... Gunnar Johansson Excel Programming 6 August 15th 04 11:54 AM
SpecialCells Doesn't Work in a Function?? Alex J Excel Programming 2 December 3rd 03 08:37 PM


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

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"