+ Reply to Thread
Results 1 to 5 of 5

Stop VBA and then start again?

  1. #1
    Registered User
    Join Date
    08-27-2007
    Location
    Australia
    Posts
    60

    Stop VBA and then start again?

    Hi All,

    I am pre-populating cells with a formula from VBA.

    The formulas are inserted into the cells ok, but the data will only populate when I stop VBA.
    The formula instructs excel to download data from an external source.

    I have tried the Application.Wait method for 20 seconds, nothing will happen until I stop VBA.

    The data I am downloading is from Bloomberg if anyone has experience with this.

    Thanks

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Stop VBA and then start again?

    Have you tried DoEvents or the more likely Worksheets("Sheet1").Calculate?

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Stop VBA and then start again?

    never mind
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    08-27-2007
    Location
    Australia
    Posts
    60

    Re: Stop VBA and then start again?

    Hi Kenneth,

    I have tried worksheet calculate.
    This line is before I instruct VBA to wait for 20 seconds.

    DoEvents I haven't tried, I will look into this further.

    Any other suggestions would be appreciated.

    Thanks

  5. #5
    Registered User
    Join Date
    08-27-2007
    Location
    Australia
    Posts
    60

    Re: Stop VBA and then start again?

    Hi all,

    It turns out Bloomberg had its own Application I had to run to refresh the data.

    If anyone else is interested though, this was the generic setup I had;

    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. Start/Stop timer
    By JonathanB2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2014, 07:00 AM
  2. Need to start/stop sum function
    By hagek in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-20-2014, 03:11 PM
  3. How to make it START and STOP at will...
    By cartedor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2009, 06:40 PM
  4. Start and stop timestamp
    By Terriz in forum Excel General
    Replies: 3
    Last Post: 07-22-2009, 03:15 AM
  5. Start/Stop & Abs/Rel box
    By Ingeniero1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2008, 02:42 PM
  6. macro stop and start
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2006, 10:20 AM
  7. [SOLVED] RTD Links, how to start and stop them
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2005, 08:06 AM

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