Vlookup with combox and Datepicker VBA

Excelnewbie001

Board Regular
Joined
Jan 25, 2017
Messages
79
I need to borrow someone brain for some help please.

Scenario

I have Combox3 which value set via Rowsource on the property tab -It works! I am using a Datepicker to store data underneath the datepickers date starting in Row 4 going down for the day -it wont exceed 400 rows going down) So I want to check combobox3.value with vlookup against the stored datepickers data starting at row 4 going down in the column. My problem is how do I set a range on a datepicker as every day it will be in a new column. My main aim is to check if the combobox 3 value are in the column for that respective day.

Need help to do a Vlookup on Datepicker range but I dont know how to set the range. I get stuck here
Code:
ComboBox3.Value = VLookup.DTPicker3.Value.Range

Code:
    Sub check_match
    On Error GoTo ErrorHandler
    Dim Matchvalue As Integer
    MatchValue= Combobox3.Value


[COLOR=#ff0000]    If Application.WorksheetFunction.VLookup.Combobox3.Value , 1, False = "MatchValue" Then
        MsgBox "Number is in Database [/COLOR]"
    Else
        MsgBox "Number was not in the Database "
    End If
    Exit Sub
ErrorHandler:
    MsgBox "Number was not in the  Database "
End Sub

Thanks for any help
 
Last edited:

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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