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: 11,058
Default Macro to find highlighted cells

Look at:

Sub SearchForFalsehood()
Columns("B:IV").EntireColumn.Hidden = True
Rows("2:65536").EntireRow.Hidden = True
For Each r In ActiveSheet.UsedRange
If r.Value = False Then
r.EntireColumn.Hidden = False
r.EntireRow.Hidden = False
End If
Next
Cells(1, 1).EntireRow.Hidden = False
Cells(1, 1).EntireColumn.Hidden = False
End Sub
--
Gary''s Student - gsnu201001


"Dawn" wrote:

Hoping someone can help me with a macro. I need to look at each row (except
for header row 1) ... if the cells in the row say "true" that row can be
hidden. If any cells in the row say "false" that row should stay visible.
Then for the remaining visible cells, look at each column (except for column
A), and if everything in that column is true, it should hide that column. If
the column has a "false" in it, that column should stay visible. If it
makes a difference, I'm searching for the true/false *values* that are
returned from a formula that is comparing two individual cells. (I'm
comparing two massive spreadsheets to make sure the data matches up from a
data upload into a database. I want to be able to zero in on the places
where we have mismatches that need review.)

I am capable of recording macros, and copying/pasting to cobble code
together in a VBA window but can not write code. I can't get anywhere close
with a recorded macro on this. Any ideas would be much appreciated, thanks!

 
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
Find/Filter highlighted cells cv Excel Programming 1 July 2nd 08 09:20 AM
Find Highlighted Cells Gayla Excel Discussion (Misc queries) 1 November 2nd 06 07:23 PM
Macro to copy highlighted cells to csv file Martin[_23_] Excel Programming 1 March 14th 06 07:56 PM
Macro to round highlighted cells to nearest hundred zaplutus Excel Programming 2 March 2nd 06 08:55 PM
Is there a macro which adds selected/highlighted cells? Ed Excel Worksheet Functions 2 September 28th 05 01:36 PM


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