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:

Excelnewbie001

Board Regular
Joined
Jan 25, 2017
Messages
79
Re: Vlookup with combox and Datepicker VBA help

Bump anyone used a datepicker using a vlookup ANYONE ?
 

Forum statistics

Threads
1,082,371
Messages
5,365,055
Members
400,819
Latest member
Gossow

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top