Results 1 to 3 of 3

Excel file does not close with the macro for now()

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-27-2017
    Location
    USA
    MS-Off Ver
    MS365 - 2302
    Posts
    164

    Post Excel file does not close with the macro for now()

    Hi All,

    I am having an issue here I have a macro running to auto refresh a template for ()now formula, Now the macro works fine but the excel wont close I have to kill it in the task manager. And even the copy pasting of data is becoming an issue.

    Please help,

    Macro in this work book

    ##Private Sub Workbook_Open()
        Call Application.OnTime(Now + TimeValue("00:00:01"), "AutoCalculate")
    End Sub
    
    Macro in Module
    Sub AutoCalculate()
    ' AutoCalculate Macro
        Calculate
        Call Application.OnTime(Now + TimeValue("00:00:05"), "AutoCalculate")
    End Sub

    Any help appreciated...
    Last edited by nr6281; 06-19-2019 at 10:09 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 03-23-2018, 03:52 PM
  2. [SOLVED] Macro to open Excel file, run other macros save, and close file & repeat.
    By Ronnet2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2015, 09:47 AM
  3. macro to close excel file and open another excel file
    By freak11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2014, 04:49 PM
  4. Replies: 0
    Last Post: 10-02-2013, 01:47 AM
  5. Need Help with Excel Macro - Open - Close File
    By Lpitt56 in forum Excel General
    Replies: 6
    Last Post: 01-26-2012, 03:31 PM
  6. Macro for close of excel file on sharepoint
    By DKY in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2010, 06:41 AM
  7. [SOLVED] Macro to open and close an Excel file
    By Magnivy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2006, 11:35 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