+ Reply to Thread
Results 1 to 4 of 4

VBA script stops when the workbook is not active.

  1. #1
    Registered User
    Join Date
    11-05-2009
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    54

    VBA script stops when the workbook is not active.

    Hello,

    First, happy new year. I work in Excel with a VBA script. The purpose of my script is that every 5 seconds a procedure will be executed. This works well.

    If my workbook is not active, it does not work. Or when I work with another workbook. Or when I work with another program. Then the script will stop to execute. It looks like a break.

    I have tried several scripts that have the same effect. I want the script continues normally with execution.

    Please Login or Register  to view this content.
    Can someone give me a solution?

    I have asked this question on the following link: http://www.mrexcel.com/forum/showthr...=1#post2168007


    Thanks so much!

    grid

    Attached Files Attached Files
    Last edited by grid; 01-03-2010 at 11:59 AM. Reason: Cross-posting

  2. #2
    Registered User
    Join Date
    11-05-2009
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: VBA script stops when the workbook is not active.

    Hello,

    I want to run automatically every 5 seconds: ThisWorkbook.RefreshAll

    So if anyone here has a way (perhaps using VBA). The renewal should be every 5 seconds to continue. So even if I work with a different workbook. Or with another program and Excel in the background.


    Best regards,

    grid


  3. #3
    Registered User
    Join Date
    11-05-2009
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: VBA script stops when the workbook is not active.

    It has been resolved!


    Please Login or Register  to view this content.

    Best regards,

    grid


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

    Re: VBA script stops when the workbook is not active.

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

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

    Free DataBaseForm example

+ 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