+ Reply to Thread
Results 1 to 2 of 2

Auto Fill date parameters VBA

  1. #1
    Registered User
    Join Date
    02-01-2019
    Location
    northampton
    MS-Off Ver
    2016
    Posts
    4

    Auto Fill date parameters VBA

    Hi was wondering if anyone case help, i have a button which when you click it prompts you to put in a from date and too date, which then in turn fills in this part of a OBDC query('" & sFrom & "' and '" & sTo & "' " & _"). But i no longer want to have to type the date in i would like it to auto fill from predefined cells in the worksheet (From: D3 to D4).

    My code before hand worked great witht he popup box: In attached (wont let me post with it in?)


    The query will run but returns no results, debugging it looking for a date of: 1899/12/29

    Could anyone offer any assistance please?

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Auto Fill date parameters VBA

    Check this part:


    Please Login or Register  to view this content.
    try like this:
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. Auto fill in date
    By lewashby85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2017, 07:57 PM
  2. Auto Date Fill
    By ElijahD in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-31-2014, 12:03 PM
  3. Auto date fill
    By dainesy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2009, 03:26 PM
  4. Auto fill date
    By scorpioscouse in forum Excel General
    Replies: 2
    Last Post: 11-14-2008, 05:34 AM
  5. Date auto fill
    By KellyPSmith in forum Excel General
    Replies: 2
    Last Post: 08-04-2008, 02:17 PM
  6. Auto Date Fill
    By martins in forum Excel General
    Replies: 5
    Last Post: 08-29-2006, 06:52 AM
  7. [SOLVED] Auto Date Fill-in
    By Dreamweavn via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2005, 05:06 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