+ Reply to Thread
Results 1 to 3 of 3

Wrong date in header when exported to PDF

  1. #1
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Wrong date in header when exported to PDF

    Hello,

    I have a small problem with a part of the code I made and I need some help.

    So, I have a code that exports a sheet as PDF. The following line is part of this code (it simply writes Production and today date in header):

    Please Login or Register  to view this content.
    Today, a colleague of mine used the entire macro in order to export a pdf, but instead of "Production 24.03.2021", the pdf was exported with "Production 23.03.2021" in header.
    Any idea why something like this happened? Do I need to change something with this part of the code Format(Date, "dd.mm.yyyy")?


    Thank you.

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Wrong date in header when exported to PDF

    Did you check the PC's date&time ? was it right ? There is no error in your code so Date is Date.
    Last edited by rollis13; 03-24-2021 at 01:34 PM.

  3. #3
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Re: Wrong date in header when exported to PDF

    I will check my colleague's pc date & time, since I know that we don't have the same regional settings.
    Thank you rollis13, for confirming that the code is ok

+ 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. [SOLVED] Correct exported date of 3/20/2019 to 3/1/2020
    By aquixano in forum Excel General
    Replies: 4
    Last Post: 09-20-2019, 11:32 AM
  2. Replies: 2
    Last Post: 02-20-2019, 03:46 PM
  3. Filling in header dates dynamically in one column in an exported canned report
    By Bouje in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2014, 10:20 AM
  4. [SOLVED] How to convert exported text date to desired date format with excel vba.
    By sktneer in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-03-2013, 01:08 AM
  5. Replies: 2
    Last Post: 05-19-2006, 01:55 PM
  6. Date Format exported from Access
    By Nuttychick in forum Excel General
    Replies: 0
    Last Post: 05-09-2005, 06:54 AM
  7. Exported Data to excel appearing wrong in Columns
    By lwreece in forum Excel General
    Replies: 5
    Last Post: 03-10-2005, 07:06 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