+ Reply to Thread
Results 1 to 3 of 3

Macro to only run if activeworkbook or specific other are open

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Macro to only run if activeworkbook or specific other are open

    Hi all

    Could someone please help or point me in the right direction?

    I only want a macro to run if the no other workbooks are open (accept the active workbook and "Launcher.xls").

    I have this so far but it does not seem to work correctly.

    The idea is to close the active workbook if other workbooks are open which could cause issues.

    Many thanks in advance

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to only run if activeworkbook or specific other are open

    Perhaps.
    Please Login or Register  to view this content.
    [/code]
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: Macro to only run if activeworkbook or specific other are open

    Thanks for this.

    I see where I went wrong.

    All tested and working.

    Thanks again

+ 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. Open a file from parent folder of the activeworkbook
    By alazari in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2013, 06:38 AM
  2. auto saving activeworkbook with specific name
    By Rohmadi02 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-28-2012, 03:25 AM
  3. Create and open copy of activeworkbook
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2009, 12:34 AM
  4. [SOLVED] Open folder - Activeworkbook location
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2006, 09:40 PM
  5. [SOLVED] For Each wks In ActiveWorkbook.Worksheets bar a specific one?
    By Pank Mehta in forum Excel General
    Replies: 4
    Last Post: 03-30-2005, 12:06 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