+ Reply to Thread
Results 1 to 5 of 5

Module Opens previous workbook automaticly

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    9

    Module Opens previous workbook automaticly

    Hi everyone!

    I am facing a problem. I use a recalc module for automatic clock in my excle workbook. It seems to work fine. Howevery, when I close the workbook with the module and leave other excel workbooks (without any macros) opened, the workbook with the macros (the recalc module) keeps on opening up automaticly. This happens until I close all excel workbooks and open those I need - that stops the headache.

    these codes I use:

    MODULE 1:

    Please Login or Register  to view this content.

    In THIS WORKBOOK

    Please Login or Register  to view this content.

    And here is the big question: How to I stop the module from running and opening unwanted workbook automaticly?

    Please note: I have no clue in VB and all the codes I've done were with the help of the pleasent people in this forum, so if you help, please be detailed

    THnk you in advance!

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

    Re: Module Opens previous workbook automaticly

    Are you running Disable before you close the workbook?

    You could use this code in the ThisWorkbook module to do that.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Module Opens previous workbook automaticly

    Quote Originally Posted by Norie View Post
    Are you running Disable before you close the workbook?

    You could use this code in the ThisWorkbook module to do that.
    Please Login or Register  to view this content.


    I tried using the code you gave me, but it didn't help. THe workbook keeps on opening up. What I did is just copy paste it in the THisWorkbook mode. Maybe I need to do something else?

    Thanks for helping!

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

    Re: Module Opens previous workbook automaticly

    Which workbook did you put the code in?

  5. #5
    Registered User
    Join Date
    09-30-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Module Opens previous workbook automaticly

    In the workbook with the module.

    exactly under the next code:

    Please Login or Register  to view this content.

+ 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. copy module and past module in new workbook
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 04:33 AM
  2. 2003 opens new sheet, 2010 opens new workbook
    By AllTheGearNoIdea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2011, 10:29 AM
  3. Textbox Hyperlink opens VB Editor at Specific Module
    By Neily in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2005, 08:05 AM
  4. [SOLVED] Run worksheet module code from workbook module?
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2005, 12:05 AM
  5. [SOLVED] Personal workbook opens when Excel opens
    By SheriTingle in forum Excel General
    Replies: 3
    Last Post: 03-29-2005, 08:06 PM

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