Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Hide only rows that are not bold?

I'm using version 2003 and want to quickly hide all the rows that are not
bold, leaving me with just the bold rows (the ones that contain only the data
I want to see).

I don't see a way to do this using conditional formatting.
--
kczmatthews
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Hide only rows that are not bold?

Try this

Sub copyit()
Dim myrange, MyRange1 As Range
Set myrange = ActiveSheet.UsedRange
For Each c In myrange
If c.EntireRow.Font.Bold = False Then
If MyRange1 Is Nothing Then
Set MyRange1 = c.EntireRow
Else
Set MyRange1 = Union(MyRange1, c.EntireRow)
End If
End If
Next
MyRange1.EntireRow.Hidden = True
End Sub

Mike

"kczmatthews" wrote:

I'm using version 2003 and want to quickly hide all the rows that are not
bold, leaving me with just the bold rows (the ones that contain only the data
I want to see).

I don't see a way to do this using conditional formatting.
--
kczmatthews

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Hide only rows that are not bold?

I'm going to admit I'm not very advanced. Where do I enter this information?

Thank you!

--
kczmatthews


"Mike H" wrote:

Try this

Sub copyit()
Dim myrange, MyRange1 As Range
Set myrange = ActiveSheet.UsedRange
For Each c In myrange
If c.EntireRow.Font.Bold = False Then
If MyRange1 Is Nothing Then
Set MyRange1 = c.EntireRow
Else
Set MyRange1 = Union(MyRange1, c.EntireRow)
End If
End If
Next
MyRange1.EntireRow.Hidden = True
End Sub

Mike

"kczmatthews" wrote:

I'm using version 2003 and want to quickly hide all the rows that are not
bold, leaving me with just the bold rows (the ones that contain only the data
I want to see).

I don't see a way to do this using conditional formatting.
--
kczmatthews

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
Counting bold cells in table rows John Excel Worksheet Functions 2 June 11th 08 02:52 AM
cut rows without cutting hide rows מיכל Excel Discussion (Misc queries) 1 June 25th 07 02:01 PM
hide rows if Greyson Excel Discussion (Misc queries) 0 November 3rd 06 09:35 PM
Join bold and non-bold text in one cell bkincaid Excel Discussion (Misc queries) 3 March 21st 06 12:58 AM
Hide Rows - copy and paste only rows that show Access101 Excel Worksheet Functions 3 March 1st 06 12:39 AM


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