+ Reply to Thread
Results 1 to 6 of 6

Select date userform based on Userform selection

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Select date userform based on Userform selection

    Good day,
    I am working with DatePicker calendar. I have two userform with date entries. In one userform I will have 2 textbox to enter dates. In the other one I will have 4 dates to enter. I used to have Excel 2007 with Calendar Control and used to work fine but had to make multiple calendar to control individual Textbox in multiple Userforms.

    I am looking for a way to, If a userform is selected to trigger only the textbox name that is within that userform. If I add more entries the code adds automatically the date from the previous userform in the next one.

    This is what I have in my Userform Calendar (Datepicker):

    Please Login or Register  to view this content.
    I was thinking that this would work but it still adds the date to my frmdashboard userform if I am in my frmdata userform.

    Is there a way to trigger only the userform that I am currently in?

    Using Excel 2013.

    Note: I also have a "Clear All" VB Code that will delete every entry in my userform on Initiate but I am looking to not go this path.

    Thank you,

    Excel Noub
    Last edited by Excelnoub; 04-05-2014 at 04:05 PM.

  2. #2
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Select date userform based on Userform selection

    Or is there just a better solution to have only one DatePicker to control any Textbox that I will have to input dates in any userform that would require this?

    Trying to have the best solution.

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Select date userform based on Userform selection

    My question should be, how to make my date picker to populate multiple textboxes in multiple userform?

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Select date userform based on Userform selection

    Here would be an example of worksheet:

    Userformdateentry.xlsm

    Here would be an example:

    If you click on the Command_Button in Sheet1 you will see the Userform... I need to indivually control all Textbox for date entry using one MonthView, with one monthview userform.

    I need this for individual Textboxes in my frmdate userform. When I click on a textbox, and when the calendar is called, to insert the date selected. But every text box must be controlled individually.

  5. #5
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Select date userform based on Userform selection

    Here is my solution:

    In a Module:

    Please Login or Register  to view this content.
    in the monthview calendar (mine is named frmCalendar2)

    Please Login or Register  to view this content.
    In my Userform that will call the Monthview to add to my textbox:

    Please Login or Register  to view this content.
    Provided by Chandoo ... NARAYANK991

    If this can help anyone in the future

  6. #6
    Registered User
    Join Date
    04-07-2014
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Select date userform based on Userform selection

    Am using Excel 2010. I wanted to create a userform in excel, a date & time (both to be obtained in a single cell), based on this selection a target date shall be selected with if formula in another column.

    And the users may have different versions from 2003 to 2013, is it possible to provide a date & time picker

+ 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. How to put into userform that can select number of page to print using userform?
    By reimar_rem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2013, 11:33 PM
  2. Selecting which userform to use based on cell selection
    By Zigaria1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2011, 09:20 AM
  3. Populating a userform based on a combobox selection
    By blindzero678 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2010, 03:37 PM
  4. Populating a userform based on a listbox selection
    By hey1000 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-21-2010, 02:54 AM
  5. Select sheet based on userform date input
    By mugitty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2006, 05:37 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