+ Reply to Thread
Results 1 to 4 of 4

Search and Update Records in User Form changing dates to US Format in Spreadsheet

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Search and Update Records in User Form changing dates to US Format in Spreadsheet

    I have a problem with the date format in a user form that is searching and updating existing records.

    I am using the following code for a "search and update" form. The user enters dates in UK format (dd/mm/yyyy) but they are displaying in the data sheet in US format (mm/dd/yyyy) which is causing problems. In my other "add record" form I have used CDATE but can't work out how to do it in the "search and update" form.

    I have NO VBA experience and have did a simple cut and paste to get this code from the internet so am not quite sure how I have made it this far!!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Search and Update Records in User Form changing dates to US Format in Spreadsheet

    Try this (not tested).

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-20-2013 at 06:27 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Search and Update Records in User Form changing dates to US Format in Spreadsheet

    Thank you so much AlphaFrog. This works and I have added a the new line for each coloumn with a date. I now have another problem with my add form but will post seperately. Thanks again.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Search and Update Records in User Form changing dates to US Format in Spreadsheet

    You're welcome.

+ 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 code to update records based on user form
    By anfdrew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2013, 03:19 PM
  2. User Search Form update Records using Invoice Number
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2013, 04:31 PM
  3. Search for/Edit Records with a User Form
    By LONeill13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2013, 03:24 PM
  4. [SOLVED] To update stored records via user form
    By Shirly Percy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2012, 01:09 AM
  5. Update records in a worksheet using a user form
    By crashhold in forum Excel General
    Replies: 3
    Last Post: 05-06-2011, 10:15 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