+ Reply to Thread
Results 1 to 8 of 8

Entering Data into tabel form a Userform

  1. #1
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Entering Data into tabel form a Userform

    Using the Microsoft template for Employee Attendance Tracker I have created on and modified it with help form users on here. I have the data added to a table on a sheet from a user form.this all works as I want.

    The issue is that on the main sheet that data in the table is used to produce a visual calendar of the year. It colors each day depending on the dates enter and type of leave taken. Originally you entered data into the table directly your selection was done via data validation.

    When you enter the data in by selecting the cell in the table from the data validation list it all works. But when it is added via the user form it indeed adds it to bottom of table. But for some reason this is not then displayed on other sheet with the calendar.

    I am hoping someone can figure out why and assist me with this. I have tried to attach file here and some pics of screen but buttons here don't seem to work at all.

    Please Login or Register  to view this content.
    This is the code that adds the data form form into the table this does indeed add it to the table.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Entering Data into tabel form a Userform

    I dont think the issue will lie with the data entry code, chances are its in the code to produce the calendar. It could be that the calendar code looks to a certain column (that isnt completed on the form) or that a user event which runs on data entry but not the form entry updates something.


    Can you upload the workbook?
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Re: Entering Data into tabel form a Userform

    Yes I have looked at the sheet with calendar, but have been unable to work it out. If I enter it via the user form it adds to table then if I manual enter it via the cells in table the manual shows but not the one that has been form the User form.

    https://dl.dropboxusercontent.com/u/...ngappluad.xlsm

    Not sure if this will work

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Entering Data into tabel form a Userform

    I cant access dropbox files at work, can you upload through the forum? in a reply click the Go Advanced button and then Manage Attachments.

  5. #5
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Entering Data into tabel form a Userform

    I think it’s just the way you have your date set to format on your userform. I made an adjustment to the format of the date on the calendar userform and it seems to allow for the table to not have the calculation error. Then on your table I did a custom format of the cell to set it back to the dd/mm/yyyy format that you are using.

    Change Code on both frmCalendar and frmCalendar2
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Bramz

  6. #6
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Re: Entering Data into tabel form a Userform

    Thanks that indeed has fixed the issue thanks so much

  7. #7
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Re: Entering Data into tabel form a Userform

    Seeing you were able to help with that, I wonder if you may know the answer or the code to do this. I am not sure how to explain it in a a forum heading, as it is to do with the same file you have modified. This file keeps a record of leave taken, I need to be able to generate a report that takes the date that you run report and shows a list of people that have had no sick leave for the last 3 months. So say on the 1st of March you run it it displays whom has had no time off from the 1 Dec to 1st of March. I am not sure where to start with it.

  8. #8
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Re: Entering Data into tabel form a Userform

    Quote Originally Posted by meabrams View Post
    I think it’s just the way you have your date set to format on your userform. I made an adjustment to the format of the date on the calendar userform and it seems to allow for the table to not have the calculation error. Then on your table I did a custom format of the cell to set it back to the dd/mm/yyyy format that you are using.

    Change Code on both frmCalendar and frmCalendar2
    Please Login or Register  to view this content.
    Hi again this works great but issue I have here in Australia we enter our Dates as dd/mm/yyyy. When you select the date form the calendar popup it displays it as the is mm/dd/yyyy. I have tried to change it to show as dd/mm/yyyy but then does not enter it into table, I assume there is some code in the calendar module perhaps that needs changing.

+ 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. VBA Userform (for Entering Data)
    By Faraei in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2014, 10:48 AM
  2. [SOLVED] Refresh UserForm after entering data in another userform
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2013, 10:34 AM
  3. Need help entering in data from userform
    By adamjohnson182 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2013, 08:15 PM
  4. [SOLVED] Entering results by Data form - is it possible?
    By neil40 in forum Excel General
    Replies: 11
    Last Post: 09-15-2012, 07:23 AM
  5. Entering data from a Userform into a row
    By dougwild in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-18-2012, 10:52 AM
  6. Entering Data Into Form
    By ajocius in forum Excel General
    Replies: 2
    Last Post: 01-18-2010, 05:59 AM
  7. Form for entering data
    By JOGIER in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2009, 06:40 PM
  8. entering data on form
    By MJWest in forum Excel General
    Replies: 2
    Last Post: 12-15-2005, 10:10 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