+ Reply to Thread
Results 1 to 4 of 4

Date Picker Error in another page using Userform Multipage

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Date Picker Error in another page using Userform Multipage

    Hi All,

    I have 2 set of date pickers in userform Multipage.
    The 1st page is "DTPicker1.Value" and in 2nd page is "DTPicker2.Value"

    I want to ensure date in 2nd page must be greater than date in the 1st page.
    On 2nd page when user click on the date, it should compare both dates but it does not work.
    Please Login or Register  to view this content.
    The issue is how to define/call date picker in another page??
    I have tried this code, "Me.MultiPage1.Pages(0).DTPicker1.Value" but not working.

    can anyone help me?
    1. Thank those who have helped you by clicking the Star * below the post.
    2. Please mark your post [SOLVED] if it has been answered satisfactorily.

    Sincerely,
    Farid

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Date Picker Error in another page using Userform Multipage

    you shouldn't need to refer to the Page it's located I wouldn't have thought however I don't often use Date Pickers.

    You should be able to use (without needing to format)

    Please Login or Register  to view this content.
    Also your argument should be <=
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Date Picker Error in another page using Userform Multipage

    Hi PFDave,

    Me.DTPicker1.Value will only work in the same page, or in single Userform without multipage.


    Now, assume I am at 2nd page, I need to call back date picker in the 1st page. Upon searching in other forum, I found some people suggested to use

    Please Login or Register  to view this content.
    but still not working.


    If this work "Me.DTPicker1.Value" , can you post sample workbook to me?

  4. #4
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Date Picker Error in another page using Userform Multipage

    Hi PFDave and Others,

    Here is sample of my workbook. Appreciate if could help to make it work

    https://app.box.com/s/wpjo9z2cgayyugs56lqwumvpc7mooaaf


    I have 2 issues
    -----------------
    1) How to call back date picker in multipage (in different page) both "Me.DTPicker1.Value" and "Me.MultiPage1.Pages(0).DTPicker1.Value" not working

    2) When comparison failed, I wonder why the 1st date selected changed back to TODAY().

+ 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. Password to protect page on Multipage userform
    By jmicdk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-23-2020, 03:43 AM
  2. [SOLVED] Date picker calendar on userform showing Error
    By Anisusa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2017, 12:23 PM
  3. Autofill TextBox on each page of Multipage Userform
    By kimmcms in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-20-2013, 06:45 PM
  4. Take user to different page in MultiPage userform
    By EMAP in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2012, 08:24 AM
  5. [SOLVED] Is it possible to disable a tab/page on a multipage Userform?
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2006, 12:30 PM
  6. can you set a default page in a Multipage userform?
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2006, 03:30 AM
  7. [SOLVED] How to print a page of a multipage userform
    By Jean-Pierre D via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2005, 01:05 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