+ Reply to Thread
Results 1 to 2 of 2

date modified

  1. #1
    flow23
    Guest

    date modified

    I have two sheets Data and Summary
    The "data" sheets macro extracts data from external file and paste into
    "Data" sheet

    Everytime the m acro is run to get latest data...

    The macro delete all contents of the "data" and then paste new data into the
    "data" sheet.

    Is there a way.. I can put a date on the "summary" sheet, when was the time
    the macro was run ( or in other words.. the data updated)





  2. #2
    Gary''s Student
    Guest

    RE: date modified

    This little macro records the date in the selected cell and formats it:

    Sub Macro2()
    Dim d As Date
    Dim s As String
    d = Now()
    s = d
    Selection.FormulaR1C1 = s
    Selection.NumberFormat = "mm/dd/yy;@"
    End Sub

    If you always want the date to go in a certain cell, then select it in the
    macro.
    --
    Gary''s Student


    "flow23" wrote:

    > I have two sheets Data and Summary
    > The "data" sheets macro extracts data from external file and paste into
    > "Data" sheet
    >
    > Everytime the m acro is run to get latest data...
    >
    > The macro delete all contents of the "data" and then paste new data into the
    > "data" sheet.
    >
    > Is there a way.. I can put a date on the "summary" sheet, when was the time
    > the macro was run ( or in other words.. the data updated)
    >
    >
    >
    >


+ 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