+ Reply to Thread
Results 1 to 2 of 2

Timer unable to close wb correctly if other wb active at same time

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Timer unable to close wb correctly if other wb active at same time

    Hi Guys,

    I have a timer set up in the workbook so, if it has been unused for an amount of time the workbook auto closes and saves so everyone else in the office can access it if they need to. The problem is if I have this workbook open and I have another one open and if the second workbook is the active one the timer code is giving me an error below with the bit in red highlighted yellow when debugging it. As a result the wole closing procedure fails and therefore not re-hiding all the sheets prior to closing and potentially leaving them visible on the next time of opening. I think I understand the problem. The splash sheet at this time is not visible which is causing the problem (I think). Is there a workaround to allow this workbook to close correctly in the backround if another wb is active? Any help greatly appreciated.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Timer unable to close wb correctly if other wb active at same time

    The Sub which is run on a particular time, try to activate the workbook as the 1st line of code, and see if that works.
    Cheers!
    Deep Dave

+ 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. save and close a spreadsheet by a controlled timer
    By Baz Kawar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2013, 06:11 PM
  2. [SOLVED] Timer , code to check IF worksheet is open else Close it. ??
    By stevnb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2012, 07:44 AM
  3. Timer Countdown then close
    By Chris Wareham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2011, 03:15 AM
  4. Timer, Save and Close with conditions
    By wjsok85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2010, 10:22 AM
  5. Timer and timed close of a spreadsheet
    By jeffwest2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2009, 06:57 AM
  6. Save and Close Timer
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2009, 11:20 AM
  7. Timer to close workbook when no activity detected
    By swedbera in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-26-2006, 04:25 PM
  8. Replies: 0
    Last Post: 06-10-2005, 01:05 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