+ Reply to Thread
Results 1 to 9 of 9

Excel 2010: Automatic Date Filing

Hybrid View

  1. #1
    Registered User
    Join Date
    05-17-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Excel 2010: Automatic Date Filing

    here is the code, u can edit based on your spreadsheet
    u can crate a button and add this macro
    and run when u input any new entry in top clumn, so when u change the entry at different dates then u need to click macro button u created

    on the other hand if u donot put values in the same week then with each new entry u can enter date where u want it to go in stead of formula from previoous post

    Sub datecopy()

    Dim i As Integer


    'GIVE 'i' one plus STARTING FROM ROW NUMBER FROM WHERE YOUR DATE BEGINS AND END TO WHEN DATE ENDS(so if your date starts from row 10 then i wld start from 11
    'cells(4,3) would be the cell where we get current date when we input new entry
    'cells(i,1) and cells(i-1,1) are the consecutive dates that you have

    For i = 3 To 50
    If Cells(4, 3).Value > Cells(i - 1, 1).Value Then If Cells(4, 3) <= Cells(i, 1) Then Cells(i, 2).Value = Cells(4, 4).Value
    Next

    End Sub


    P.S. please click start but for me if I was helpful

  2. #2
    Registered User
    Join Date
    06-15-2012
    Location
    burton, england
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Excel 2010: Automatic Date Filing

    Hi,

    I hope you had a good weekend?

    I am putting together the formulas now. To be honest im pretty unclear as to how to input the macro formula you have suggested above. It looks like a good idea and im up for using it. But i dont know how to put it in any help would be much appreciated.

    Dan

+ 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