FuzzyVlookup messing up Worksheet Change

zoomixer

New Member
Joined
Feb 13, 2008
Messages
7
Hi! I'm a noob when it comes to using VB with Excel and everything I do I've ripped off of other people. :) That being said I was trying to implement the FuzzyVlookup that I've seen posts about on here into a workbook. When I added it worked just wonderfully but it ended up for whatever reason causing my Worksheet Change that I had to hide or show rows/tabs based on certain values on the sheet. Here's the basics of what I have:

Private Sub Worksheet_Change(ByVal Target As Range)
'If Target.Count > 1 Then Exit Sub
If (Target.Address <> "$M$2") And (Target.Address <> "$C$10") And (Target.Address <> "$C$40") Then Exit Sub
'change this address
Dim myrow As Integer
myrow = Target.Row
If Target.Value = "1 Driver" Then
Range(myrow + 5 & ":" & myrow + 28).EntireRow.Hidden = True
'add/change row names
End If

and it continues from there with further variables. Can anyone assist me with getting this code to work along with the FuzzyVlookup? Also, some pointers as to why it's not working would be appreciated :biggrin: Thanks!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I just noticed I messed up my original post. The FuzzyVlookup is causing my Worksheet Change to NOT work. They work fine independently of each other but not together.
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top