+ Reply to Thread
Results 1 to 3 of 3

date generation question

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    date generation question

    hi,

    why does the code below generate the previous date(day) of the number stated in the code and not the number in the code itself?

    Please Login or Register  to view this content.
    instead of showing Aug 8 it will show Aug 7

    i just realized i posted this in the wrong thread my bad
    Last edited by k1dr0ck; 08-29-2018 at 10:54 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: date generation question

    try this amended code

    PHP Code: 
    Cells(21).Value DateSerial(Year(Date), Month(Date), 8
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: date generation question

    hi,

    thanks for the reply
    amended my code, thanks!

+ 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] Drawdown and Date Generation
    By Number7stunner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2018, 05:12 PM
  2. Date generation
    By Tanza in forum Excel General
    Replies: 5
    Last Post: 04-23-2011, 07:56 AM
  3. Date generation in column.
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2008, 11:41 AM
  4. SHG - VBA macro for date generation
    By JustinMAS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2008, 01:01 PM
  5. [SOLVED] Reposting Date List Generation Question
    By alexandraVBAgirl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2006, 01:00 PM
  6. Cell generation from user input question.
    By Thundersixx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2006, 01:30 PM
  7. [SOLVED] Random Date Generation
    By TNMAN in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2005, 08:00 AM

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