+ Reply to Thread
Results 1 to 4 of 4

Date formating issues teams export to excel

  1. #1
    Registered User
    Join Date
    02-14-2022
    Location
    NL
    MS-Off Ver
    MO 365
    Posts
    2

    Date formating issues teams export to excel

    Hello,



    When I export my plan from Microsoft teams, the format of the date is still general.

    Screenshot 2022-02-14 122810.png


    But when I run my the formatting of the date jumps on:

    Screenshot 2022-02-14 122900.png

    This is a part of the code:

    Range("F5:F100").NumberFormat = "dd-mm-jjjj"
    Sheets("Tasks").UsedRange.Replace What:="\j\j\j\j", Replacement:="jjjj"



    And that doesn't work, is there a way how I can fix this?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,897

    Re: Date formating issues teams export to excel

    Try this line instead:
    Please Login or Register  to view this content.
    It will hopefully force the text dates into actual dates.

    BSB

  3. #3
    Registered User
    Join Date
    02-14-2022
    Location
    NL
    MS-Off Ver
    MO 365
    Posts
    2

    Re: Date formating issues teams export to excel

    I just tried it.
    Attachment 768260
    And for some reason, it works on some. But it won't work for the rest.
    The text tot the right is where it worked, but all the text to the left are still the same (general format)

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,897

    Re: Date formating issues teams export to excel

    The attachment doesn't work. Follow the instructions in the yellow banner at the top of the page to attach a file.

    I'm guessing the reason some worked and others didn't is all to do with your date settings. If the dates come in as dd/mm/yyyy and you use mm/dd/yyyy, or vice versa, then it will struggle to change some.
    For example, if 10/11/2021 could be 10th Nov or 11th Oct depending on your date settings and can be interchanged (not always correctly, so you'll need to check your results).
    But 13/11/2021 can only be 13th Nov and not 11th of some made up month.

    BSB

+ 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. Advanced export from Excel to Word - Tables (with formating), Text and Chart
    By Dziabo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2017, 12:43 PM
  2. Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2016, 08:07 AM
  3. [SOLVED] Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 02-11-2016, 07:57 AM
  4. [SOLVED] Two columns of teams, count the number of times the teams meet?
    By tpe102 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2013, 09:21 AM
  5. Excel 2007 : Excel 2007 Export to PDF issues
    By sbgstudios in forum Excel General
    Replies: 0
    Last Post: 03-26-2009, 03:52 PM
  6. Formating Issues
    By bodegas411 in forum Excel General
    Replies: 2
    Last Post: 06-05-2008, 02:18 PM
  7. [SOLVED] Help with date formating when export to Word
    By a0relento in forum Excel General
    Replies: 3
    Last Post: 10-15-2005, 09:05 PM

Tags for this Thread

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