-
WSvanoskyj
AskWoody Loungerthanks steve, I thought you left for the day.
Private lngMaxRow As Long
Private Sub EXEC_BTN_Click()
HiliteMeAndSiblings ActiveCell
End SubSub HiliteMeAndSiblings(oCell As Range)
lngMaxRow = Range(“I1000”).End(xlUp).RowDim i As Long
‘oCell.Offset(0, -1).Resize(1, 2).Font.ColorIndex = 5
oCell.Offset(0, -1).EntireRow.Hidden = False
For i = 9 To lngMaxRow
Debug.Print i
If ActiveCell “” Then
Range(“H5:I” & lngMaxRow).EntireRow.Hidden = True
End If
If Range(“H” & i) = oCell Then
Range(“I” & i).EntireRow.Hidden = False
End If
Next iEnd Sub
Private Sub CommandButton1_Click()
With Sheet1
ActiveWorkbook.RefreshAll
End With
End Sub -
WSvanoskyj
AskWoody LoungerHow come it does not find all the parents and children?
-
WSvanoskyj
AskWoody LoungerI did finally get it to refresh by doing the following:
Private Sub CommandButton1_Click()
With Sheet1
ActiveWorkbook.RefreshAll
End With
End Sub -
WSvanoskyj
AskWoody LoungerHi Hans did steve leave for the day? Is there anyway I can just look for the lastrow instead of going through all the rows excel has? It takes it too long to calculate everything.
-
WSvanoskyj
AskWoody Loungersorry steve but INTERSECT is not in the EXCEL 2000 book. Did you mean INTERCEPT?
-
WSvanoskyj
AskWoody Loungerthis is what I have so far:
Private Sub EXEC_BTN_click()
lngMaxRow = Range(“I65536”).End(xlUp).Row
If Range(“H2:I” & lngMaxRow) = “” Then Range(“H4:I” & lngMaxRow).EntireRow.Hidden = False
End Sub -
WSvanoskyj
AskWoody Loungerok I’m lost. I still cannot get this to bring back all my rows.
-
WSvanoskyj
AskWoody LoungerOk I got it to actually work with the directions you stated. But now how do I bring them all back so that I can click on another Child or parent? Is there a way to make it so that I can just click on the spreedsheet anywhere and it brings them all back?
-
WSvanoskyj
AskWoody LoungerThis is what I have so far.
Private lngMaxRow As LongPrivate Sub EXEC_BTN_Click()
lngMaxRow = Range(“I65536”).End(xlUp).Row
Range(“H2:I” & lngMaxRow).Font.ColorIndex = xlColorIndexAutomatic
HiliteMeAndSiblings ActiveCell
End SubSub HiliteMeAndSiblings(oCell As Range)
Range(“H4:I” & lngMaxRow).EntireRow.Hidden = TrueDim i As Long
‘oCell.Offset(0, -1).Resize(1, 2).Font.ColorIndex = 5
oCell.Offset(0, -1).EntireRow.Hidden = False
For i = 2 To lngMaxRow
Debug.Print i
If Range(“H” & i) = oCell Then
Range(“I” & i).EntireRow.Hidden = False
End If
Next i
End Sub -
WSvanoskyj
AskWoody Loungerthat sounds great, But remember one thing Newbie here. I’m still in school learning this stuff.
-
WSvanoskyj
AskWoody LoungerOK something went wrong. It’s only showing the row that I clicked on and not all parents and children in any other rows.
-
WSvanoskyj
AskWoody LoungerI think I figured it out. Thank you so much. Now one last question. Is there a way to speed up that process. Because I have over 800 rows of data and it takes a few minutes for it to actually work. If not I will take what I can get. Thank you SOOOOOO much once again.
-
WSvanoskyj
AskWoody LoungerSo where would I place them at in my code. I tried and got an error saying subscript out of range.
Private lngMaxRow As Long
Private Sub EXEC_BTN_Click()
lngMaxRow = Range(“I65536”).End(xlUp).Row
Range(“H2:I” & lngMaxRow).Font.ColorIndex = xlColorIndexAutomatic
HiliteMeAndSiblings ActiveCell
End SubSub HiliteMeAndSiblings(oCell As Range)
Dim i As Long
oCell.Offset(0, -1).Resize(1, 2).Font.ColorIndex = 5
For i = 2 To lngMaxRow
Debug.Print i
If Range(“H” & i) = oCell Then
HiliteMeAndSiblings Range(“I” & i)
End If
Next i
End Sub -
WSvanoskyj
AskWoody LoungerOk, I spent most of my weekend looking through the book, It does not state anywhere what kind of code I need to use to have the rows hide or unhide. Besides doing it manually. What I’m looking for is when the Parent and Children are all selected I need only those rows to appear. and when the user clicks on them again all rows appear again. I need help on this anybody. Please.
-
WSvanoskyj
AskWoody LoungerI would like rows where I find any reference or child/parent of what I’m looking for to show automatilcally only. another words hide all the other rows that I do not need.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
2 hours, 49 minutes ago -
Firefox 139
by
Charlie
2 hours, 5 minutes ago -
Who knows what?
by
Will Fastie
35 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
26 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
12 hours, 42 minutes ago -
Misbehaving devices
by
Susan Bradley
2 hours, 34 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
1 day, 6 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
1 hour, 43 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
1 day, 4 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
4 hours, 8 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
19 hours, 13 minutes ago -
Rufus is available from the MSFT Store
by
PL1
1 day, 3 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
2 days, 6 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
5 hours, 55 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
4 hours, 38 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
2 days, 1 hour ago -
Office gets current release
by
Susan Bradley
2 days, 4 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 18 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 days, 3 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 19 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
4 days, 5 hours ago -
X Suspends Encrypted DMs
by
Alex5723
4 days, 7 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
4 days, 7 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
4 days, 8 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
4 days, 9 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 21 hours ago -
Enabling Secureboot
by
ITguy
4 days, 4 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days, 16 hours ago -
No more rounded corners??
by
CWBillow
4 days, 12 hours ago -
Android 15 and IPV6
by
Win7and10
4 days, 2 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.