+ Reply to Thread
Results 1 to 4 of 4

Edate format changing to MM/DD/YYYY format

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Edate format changing to MM/DD/YYYY format

    Hi,

    In my spreadsheet I enter a date and use the EDATE function to calculate subsequent dates in the following columns.

    I have created a Userform to display the data in the spreadsheet. In the Userform the initial date entered displays in the correct DD/MM/YYYY, however, the following dates which are calculated using the EDATE function are displayed in the MM/DD/YYYY format, i have no idea how to change this, any advice?

    I've attached a picture of this.

    Thanks
    Attached Images Attached Images

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Edate format changing to MM/DD/YYYY format

    Try this, Replace Now with the date string you want format.

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Edate format changing to MM/DD/YYYY format

    Sorry, that didn't work.

    It accepts the dates that are manually entered, but changes the formatting of the calculated EDATE fields to MM/DD/YYYY. All of the fields have the same 'Short Date' format choice in the spreadsheet.

    Any more suggestions?

    The TextBoxes which are causing the issue are 'TextBox30', 'TextBox32', 'TextBox34', 'TextBox36'
    'TextBox38', TextBox40', 'TextBox41', 'TextBox42'

    Below is the code for my UserForm:


    Please Login or Register  to view this content.
    Last edited by Cutter; 08-24-2012 at 12:53 PM. Reason: Added code tags

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Edate format changing to MM/DD/YYYY format

    @ david1987

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

+ 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