Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Find value in hidden cell

My excel sheet has a list of names with info corresponding to the name
in the same row. I am constantly adding and deleting names and hiding
and unhiding rows. I decided to write a code that will search through
the list of names. Find the first "available" row and make it
visible. The part I am having trouble with right now is hiding and
unhiding. Here is my code:

Sub Findnshow
with worksheets(2).range("a4:a15")
'look for blank cell
set c = .find("", lookin:=xlvalues)
if not c is nothing then
firstaddress = c.address
select blank cell
c.select
end if
end with
hide entire row
selection.entirerow.hidden=true
end sub

If i try to unhide the row it does the search but does noot look at
the hidden cell. It skips to the next available cell and since it is
not hidden it does nothing. How can I unhide it?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Find value in hidden cell

Try looking in xlformulas instead of xlvalues.



stewdizzle wrote:

My excel sheet has a list of names with info corresponding to the name
in the same row. I am constantly adding and deleting names and hiding
and unhiding rows. I decided to write a code that will search through
the list of names. Find the first "available" row and make it
visible. The part I am having trouble with right now is hiding and
unhiding. Here is my code:

Sub Findnshow
with worksheets(2).range("a4:a15")
'look for blank cell
set c = .find("", lookin:=xlvalues)
if not c is nothing then
firstaddress = c.address
select blank cell
c.select
end if
end with
hide entire row
selection.entirerow.hidden=true
end sub

If i try to unhide the row it does the search but does noot look at
the hidden cell. It skips to the next available cell and since it is
not hidden it does nothing. How can I unhide it?


--

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
how to find out if a row is hidden Ray Excel Worksheet Functions 3 August 29th 08 05:05 AM
How to find non-blank cell values "hidden" under merged regions? david.karr Excel Discussion (Misc queries) 7 April 7th 07 11:35 PM
how to find if an excel sheet has any hidden values in a cell in VB.NET sparrow[_2_] Excel Programming 4 August 14th 06 06:41 AM
find out if cell is hidden in if statement Wandering Mage[_2_] Excel Programming 2 October 13th 04 07:01 PM
Find Last Row Hidden John Wilson Excel Programming 1 January 21st 04 01:07 PM


All times are GMT +1. The time now is 02:14 PM.

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"