+ Reply to Thread
Results 1 to 8 of 8

User Form field inserts wrong date format

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118

    Re: User Form field inserts wrong date format

    Thank you for all your suggestions.

    Here is a copy of the sheet I am using.

    On the Feedback Summary sheet, if you click on the top button, a form appears. The feedback is recorded and then summarised on the other sheet.

    The trouble is, I am now trying to work out how to summarise each category for each trainer PER MONTH so when the date goes in, incorrectly it's not gerating the correct date.

    Mudraker, I couldn't see those hyperlinks but I will have a search.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: User Form field inserts wrong date format

    Hi again,

    The highlighted addition to your code seems to give the correct result on my system (Excel 2000):

    Private Sub cmdOK_Click()
        ActiveWorkbook.Sheets("Feedback Summary").Activate
        Range("A1").Select
        Do
        If IsEmpty(ActiveCell) = False Then
            ActiveCell.Offset(1, 0).Select
        End If
        Loop Until IsEmpty(ActiveCell) = True
        ActiveCell.Value = DateValue(txtDate.Value)
        ActiveCell.Offset(0, 1) = cboCourse.Value
        ActiveCell.Offset(0, 2) = cboTrainer.Value
        ActiveCell.Offset(0, 3) = cboDels.Value
        ActiveCell.Offset(0, 4) = txtCat1.Value
        ActiveCell.Offset(0, 5) = txtCat2.Value
        ActiveCell.Offset(0, 6) = txtCat3.Value
        ActiveCell.Offset(0, 7) = txtCat4.Value
        ActiveCell.Offset(0, 8) = txtCat5.Value
        ActiveCell.Offset(0, 9) = txtCat6.Value
        ActiveCell.Offset(0, 10) = txtComm.Value
        Range("A1").Select
    End Sub
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

+ 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