+ Reply to Thread
Results 1 to 4 of 4

Running code in one open workbook another active

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Running code in one open workbook another active

    Hi,
    I have an open active workbook (called Data Collection) collecting real time data via an add in from an internet server.Another workbook (called Todays Workbook) is also open and has linked cells to Data Collection.

    When I activate Todays Workbook it stops the code from running in Data Collection. Is it possible to have Todays Workbook activated while still running the code in Data Collection.

    Being very new to VBA. Help would be much appreciated. Thank you.
    Last edited by shumba; 06-14-2010 at 04:15 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Running code in one open workbook another active

    Not sure why you have cells in a workbook linked to an addin.

    Post the code or attach the workbooks
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-11-2010
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Running code in one open workbook another active

    Quote Originally Posted by royUK View Post
    Not sure why you have cells in a workbook linked to an addin.

    Post the code or attach the workbooks
    RoyUK,

    Thank you for your time. Here is the code.

    Please Login or Register  to view this content.
    This code is for the Data Collection workbook and runs fine when this workbook is activated. However when Today's workbook is activated the the code stops at
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-11-2010
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Running code in one open workbook another active

    I have added two lines of code at the beginning of the Sub Timer Procedure.
    Please Login or Register  to view this content.
    and one line at the end before StartTimer2
    Please Login or Register  to view this content.
    Thanks to all those who have read and replied.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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