+ Reply to Thread
Results 1 to 3 of 3

Using Command Button to Check Multiple Details from one Tab to Another Tab

  1. #1
    Registered User
    Join Date
    09-30-2016
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    4

    Using Command Button to Check Multiple Details from one Tab to Another Tab

    Hello Guys,

    I am trying to figure out how can I check employees withL
    1. Same Departure Date and Time, Pick up Spot, Pick up Time and Land Transpo from Input Tab to Data Tab.
    2. Then if have same details with other employees, a message will appear indicating "Same travel details with identified employee"
    3. If no match: message- "No match found"

    Thank you.

    Attached is my draft database
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Using Command Button to Check Multiple Details from one Tab to Another Tab

    Hi Nelson and welcome to Excel Forum,

    You were very close to a solution. The keys are understanding how Excel 'Find' works, which can at times be difficult at best, and understanding how Excel stores Dates and Times and Date/Time combinations.

    You did several things correctly including:
    a. Use of 'Option Explcit'
    b. Creating the Concatenation in Column 'AB'.

    See the following macro which is included in the attached sample file. The macro is triggered by the ' Check Employees with same Departure Details' CommandButton, the same as you did. My test data in the 'Input Sheet' may be in the wrong cells, if I misunderstood what certain fields were supposed to be.

    Do not use my file except for test purposes, as I commented out some things that cleared the Input Sheet.

    In ordinary Code module modDeparture:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    09-30-2016
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    4

    Re: Using Command Button to Check Multiple Details from one Tab to Another Tab

    Hi LJ,

    Thank you so much for your help.
    Really works!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is it possible to program a command button with check boxes?
    By DB121 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2016, 12:25 AM
  2. Copy Check Box to Every 5th Cell with Command Button
    By und3raxi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-13-2015, 03:01 AM
  3. [SOLVED] Command button to check a column of checkboxes
    By cnbv in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-22-2013, 10:25 AM
  4. [SOLVED] Use one command button to 3 check boxes with different call macros
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2012, 09:59 AM
  5. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  6. Uncheck Check Box + check a option button using Command Button
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2009, 03:09 AM
  7. Check box making a command button work
    By Rmagic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2005, 08:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1