+ Reply to Thread
Results 1 to 3 of 3

Differents dates in differents sheets

  1. #1
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Differents dates in differents sheets

    I want my code to send different dates to next sheet, but it'll always send "08/02/2016". I'd like this to be 08/mm/2016 (yes, my date format is different).

    For example: (you might need the last code below)
    in january sheet I enter with 30/01/2016 and textbox3 = 2, for example. It should write 30/01/2016 in jan sheet, 08/02/2016 in feb sheet and 08/03/2016 in mar sheet

    Please Login or Register  to view this content.


    If you need, this is a part of the entire code:
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Differents dates in differents sheets

    I don't really how to make it work.
    I was thinking in something like:

    count = 1 (outside while)

    count = count + 1
    08/count/16

    Then if I enter 3 on jan
    it would be:
    jan: 30/01/16 'that's ok, you don't need to worry
    feb: 08/02/16
    mar: 08/03/16
    apr: 08/04/16


    But there is a problem. I don't know how to do that, and even if I did know, it would only work when I do it in jan. Because If I do it in June, for example, it would be 30/01/16 in june, 08/02/16 in jul, 08/03/16 in aug and 08/04/16 in sep, instead of 30/01/16 (that will be 30/06/16 when we get to this day) in june, 08/07/16 in jul, 08/08/16 in aug and 08/09/16 in sep.

  3. #3
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Differents dates in differents sheets

    I solved it =)
    All I did was add some ifs for each month.

    Please Login or Register  to view this content.

+ 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. Gestion de stock (plusieurs conditions, résultats différents)
    By nacereddine.mourad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2016, 02:15 AM
  2. Activate custom ribbon tabs for differents sheets
    By Deutz in forum Excel General
    Replies: 2
    Last Post: 07-30-2015, 02:30 AM
  3. [SOLVED] Copy and Paste differents ranges
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-21-2015, 12:10 PM
  4. Check cell and sum differents worksheets
    By Salivan in forum Excel General
    Replies: 4
    Last Post: 05-13-2014, 12:13 PM
  5. Excel file with differents format of date
    By KateBackOffice in forum Excel General
    Replies: 1
    Last Post: 11-13-2013, 02:04 PM
  6. separate data of differents countries in others sheets
    By silviario in forum Excel General
    Replies: 6
    Last Post: 04-27-2011, 03:14 PM
  7. Join differents words in cells seperated by ;
    By corvito in forum Excel General
    Replies: 8
    Last Post: 04-08-2007, 11:02 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