+ Reply to Thread
Results 1 to 4 of 4

Time stamp upon refresh

  1. #1
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Time stamp upon refresh

    I just discovered a great new trick (thanks to JEC) to refresh queries remotely using VBA. My problem is that on the workbook, I have a cell with a NOW() formula. I rigged it in a way so that cell also gets refreshed when I Refresh All, therefore showing me the last time of refresh. Unfortunately when I refresh the workbook remotely via VBA, that cell does not show today's date (probably b/c I did not actually open workbook). So an accurate timestamp can not be rendered.

    What is a VBA code to get NOW() date and time that works even if a workbook does not open? Really I need a timestamp when last refresh occurred via VBA.......

    thanks

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Time stamp upon refresh

    This one to place it in Z1

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Re: Time stamp upon refresh

    It keeps me struck on 3rd line (.Sheets(1).Cells(1, 26).Value = Now).
    Sheet(1) refers to first sheet or name of sheet? Close 1 refers to sheet 1?

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Time stamp upon refresh

    Yes, you can change sheets(1) to sheets(“your sheet name”)

+ 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. Date stamp on Refresh All Problem
    By coatsy35 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-25-2019, 08:25 AM
  2. Time Stamp Active Cells and Record a History of Time Stamp and Active Cell Value
    By harishangaran in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-22-2017, 12:41 PM
  3. Date stamp of last external data refresh
    By shabbir2812 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2016, 01:46 PM
  4. Computer time stamp -> excel time stamp
    By j.petrut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2014, 05:49 PM
  5. Do not Want Time Date Stamp Column to Refresh
    By Toddz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2014, 07:30 PM
  6. How to get time stamp and user name stamp
    By eskains in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2013, 09:44 AM
  7. Replies: 3
    Last Post: 11-06-2012, 01:37 AM

Tags for this Thread

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