+ Reply to Thread
Results 1 to 3 of 3

one calendar fills data to different textboxes

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2010
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003, 2007
    Posts
    18

    one calendar fills data to different textboxes

    Hello everyone,

    I created 2 identical worksheets with the different names "RSV" and "INH" and I copied every controls on from UserForm "frmRSV" to "frmINH".

    There are 2 buttons to call calendar "cldADAT" and "cldDDAT". When I clicked on the calendar, I wanted the data to be displayed in "frmINH.txtADAT", but it wasn't.

    I've attached the file I'm working on, please help me out.

    Thanks

    Nontpakorn
    Attached Files Attached Files
    Last edited by NonSira; 07-21-2010 at 11:23 PM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: one calendar fills data to different textboxes

    Hi, You have 2 userforms That both use the same Calendars code.
    You can't use a code in a Userform that Relates to another Userform.
    When your working with Userform "frmINH" The Calendar Code relates to Userform "frmRSA".
    You could probably get away with removing the Reference in the Caledar to the Userform, and just relate to the TextBox.
    Mick

  3. #3
    Registered User
    Join Date
    06-19-2010
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003, 2007
    Posts
    18

    Re: one calendar fills data to different textboxes

    Hi Mick,

    Thanks for the answer, I'll try to do it your way and will post the result.

    Nontpakorn

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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