-
WSvanoskyj
AskWoody Loungerdon’t know why I didn’t think of that…. thanks buddy.
-
WSvanoskyj
AskWoody Loungerthank you again for your time and knowledge. As you can tell I’m not that good. Heck I just dabble in it. So any and all help is appreciated.
-
WSvanoskyj
AskWoody Loungerok guy he it all is gentleman all of it in it’s entirety. If you see anything that you think you can achieve better please by all means alter the code and let me know. Because time is running out here. thank you all for your time and efforets it is greatly appreciated.
-
WSvanoskyj
AskWoody Loungeryes , but I thought you had to list each problem seperatley
can you assist on my last problem please, i get that done and thats it for me for a while.
I have drawn an example of my problem. In this example you will see that there are 6 textboxes (3 in each row). When the user is typing in the data and she only needs the first row I need to have her skip the remaining three text boxes and goto the total materials textbox. This cannot be done through tabbing over though because there are actually 8 rows in the actual userform. how can I go about this?
quantity | parts | amount
=======|=====|=============
txtb1 | txtb2 | txtb3
======|=======|=============
txtb4 |txtb5 | txtb6
=======|======|============= -
WSvanoskyj
AskWoody Loungersure but wouldn’t I have to do that for every row in the spreadsheet?
I tried this code below too but it still puts in tru or false
Code:Private Sub cmdenter_click() If checkbox1 Then Cells(Rows.Count,"BB").End(xlUp).Offset(1).Value = "Yes" Else Cells(Rows.Count,"BB").End(xlUp).Offset(1).Value = "No" End If End Sub
any other ideas?
-
WSvanoskyj
AskWoody Loungerthe data entry operator is fast so she would like to just skip the empty text boxes (thats what the quantity parts and amount are.
so if there is quantity = 1 part = tire amount = 5 cents and nothinjg else she can skip the other text boxes and continue to the total materials text box. -
WSvanoskyj
AskWoody Loungeryes sir, I would like for it to show the first match then tell me how many are within that certain spreadsheet. My spreadsheets are named after the date MMMYYYY (Jul2010) etc…
P.s.
I’m sorry I did not respond any earlier but I was hospitalized. Thank you once again for any and all assistance.
I’m also having problems with my data not getting to my spreadsheet. I have attached a copy of what I have done so far. Please keep in mind I’m doing this from my school books. If you or anybody else can think of a better way to get this done please inform. I will take any and all assistance. But it has to be in visual basic and excel.
Thank you.
-
WSvanoskyj
AskWoody Loungerok one last word on this subject.
Is there any way That I can make it go faster because the wait is at least 4 minutes if there is more than 10 child/parents it has to find.?
And now that I have completed it how would you have written the code? Just curious!!
thank you
-
WSvanoskyj
AskWoody Loungerok, I finally have it working where it finds everything needed except. If the cell conatins PSA-100 it finds everything that mayches it exactly. What about wildcards. How can I not only find the PSA-100’s but also the PSA-100-6 & PSA-100-msa & PSA-100klu Etc… after this I should be done.
Current code below:
rivate lngMaxRow As Long
Private Sub CommandButton1_Click()
With Sheet1
ActiveWorkbook.RefreshAll
End With
End SubPrivate Sub EXEC_BTN_click()
Application.ScreenUpdating = FalseRange(“H6:H65536”).EntireRow.Hidden = False
lngMaxRow = Range(“I65536”).End(xlUp).RowIf IsEmpty(ActiveCell) = False Then
‘ActiveCell has something in it.
If ActiveCell.Column = 8 Or ActiveCell.Column = 9 Then
‘ActiveCell is in Column H or I.
Range(“H6:I” & lngMaxRow).EntireRow.Hidden = True
End If
End IfHiliteMeAndSiblings ActiveCell
Application.ScreenUpdating = True
End Sub
Sub HiliteMeAndSiblings(oCell As Range)
Dim 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
HiliteMeAndSiblings2 ActiveCellEnd Sub
Sub HiliteMeAndSiblings2(oCell As Range)
Dim 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(“I” & i) = oCell Then
Range(“H” & i).EntireRow.Hidden = False
End If
Next iEnd Sub
-
WSvanoskyj
AskWoody LoungerPoint well taken!!! My apolgies, I’m just frustrated thats all.
-
WSvanoskyj
AskWoody LoungerI told you guys this was tough. It seems that you all gave up on me.
-
WSvanoskyj
AskWoody LoungerAlso I have reviewed the Intersect on vba help. dont really understand how that would help. what can I say I’m an Idiot.
Returns a Range object that represents the rectangular intersection of two or more ranges.
expression.Intersect(Arg1, Arg2, …)
expression Optional. An expression that returns an Application object.
Arg1, Arg2, … Required Range. The intersecting ranges. At least two Range objects must be specified.
Example
This example selects the intersection of two named ranges, rg1 and rg2, on Sheet1. If the ranges don’t intersect, the example displays a message.Worksheets(“Sheet1”).Activate
Set isect = Application.Intersect(Range(“rg1”), Range(“rg2”))
If isect Is Nothing Then
MsgBox “Ranges do not intersect”
Else
isect.Select
End IfMy new code is below:
Private lngMaxRow As Long
Private Sub EXEC_BTN_click()
Application.ScreenUpdating = False
Range(“H4:H65536”).EntireRow.Hidden = False
lngMaxRow = Range(“I65536”).End(xlUp).RowIf ActiveCell “” Then
Range(“H4:I” & lngMaxRow).EntireRow.Hidden = TrueHiliteMeAndSiblings ActiveCell
End If
Application.ScreenUpdating = TrueEnd Sub
Sub HiliteMeAndSiblings(oCell As Range)
Dim i As Long
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 And Range(“H” & i).EntireRow.Hidden = False
End If
Next iEnd Sub
Private Sub CommandButton1_Click()
With Sheet1
ActiveWorkbook.RefreshAll
End With
End Subthank you gentlemen.
-
WSvanoskyj
AskWoody LoungerI told you I was a newbie….. I really suck at this thats why I’m going to school for it to hopefully get better. I really do appreciate you patience as well as your knowledge. thank you.
1). I only have 831 rows of data, I thought it would make it go faster if it did not read all the blank cells.
2). the “lorIndex = xlColorIndexAutomatic” was just a left over line from what Hans gave me I have since taken it out.
3). I have put the Hide all rows within the click event. along with the if statement.
4). I have put the screen updating within the click event as well.
5). The debug print line has been taken out. As I stated earlier I was reading from the book.
6). Hans’ code allowed me to hilite anything within columns H and I (parent and child) It looked through the whole column and if it found it it would hilight it.
Yes I agree there are some parts of this coding that is way over my head. That is the reason I ask these stupid questions. My teacher keeps telling us that in the real world people search out the answers rather through the Internet or books. I have tried to do both. It just gets so confusing day after day trying to understand what he wants out of us and what the book states to do and what the people on line tell me what to do. I really do appreciate both you and Hans for you superior Knowledge (and no I’m not a** kissing) Its true. I have stated before in the past that I have tried other sites but they are filled with Newbies like myself who really do not know what the hell they are talking about. Thats why I kep coming here. I bought the excel 2000 book and it gave me this site for reference. If I have become a Nuisance please say so and I will stop. thank you for your time and all of your efforts. -
WSvanoskyj
AskWoody LoungerSorry Steve, I was trying some things out of the book.
I have repaired it. This is what I have so Far.
Private Sub CommandButton1_Click()
With Sheet1
ActiveWorkbook.RefreshAll
End With
End SubPrivate Sub EXEC_BTN_click()
Range(“H4:H1000”).EntireRow.Hidden = False
lngMaxRow = Range(“I1000”).End(xlUp).Row
lorIndex = xlColorIndexAutomatic
HiliteMeAndSiblings ActiveCell
End SubSub HiliteMeAndSiblings(oCell As Range)
Application.ScreenUpdating = False
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
Application.ScreenUpdating = True
End SubTell me Steve what would your code look like. I really do not want to fail this. But I’m just so confused between the VB books the Excel Books and what people are telling me how it should look and work. AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!! Real Life Programming can’t be this way, can it?
-
WSvanoskyj
AskWoody Loungeri’m sorry to say this but i must leave for school now see you all later I will as always check for any updates. see you all tommorrow my friends
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Privacy and the Real ID
by
Susan Bradley
4 hours, 29 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
4 hours, 45 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
6 hours, 34 minutes ago -
Upgrading from Win 10
by
WSjcgc50
5 hours, 58 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
17 hours, 55 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
19 hours, 12 minutes ago -
The story of Windows Longhorn
by
Cybertooth
6 hours, 56 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
21 hours, 10 minutes ago -
Are manuals extinct?
by
Susan Bradley
1 hour, 10 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 6 hours ago -
Network Issue
by
Casey H
17 hours, 23 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 18 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 18 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 20 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
21 hours, 32 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 22 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 22 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 6 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
22 hours, 37 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 17 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 hour ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
20 hours, 38 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 23 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 18 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 18 hours ago -
Powershell version?
by
CWBillow
2 days, 19 hours ago -
SendTom Toys
by
CWBillow
1 day, 6 hours ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 23 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days, 16 hours ago -
How can I install Skype on Windows 7?
by
Help
3 days, 14 hours ago
Recent blog posts
Key Links
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.