+ Reply to Thread
Results 1 to 1 of 1

VBA Code not refresh sheet

  1. #1
    Forum Contributor
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    680

    VBA Code not refresh sheet

    I have a list of about 1800 companies (SP 1500 & some other companies), and I use VBA code to write the formula STOCKHISTORY and pull historical data for each symbol.

    For some symbols, the data cannot be pulled and it shows #CONNECT! (or BUSY), so I save the file and close/reopen to file, occasionally, it does pull all data for each symbol in the list, so all symbols are valid. But sometimes it does not, sometimes it misses pulling data for a few symbols(maybe 2 or 3), sometimes it misses pulling data for quite some symbols (maybe more than 20). Every time when I open the file, it ends up differently, sometimes it misses pulling data for some symbols, sometimes it misses pulling data for some other symbols. It is not really the matter of time, if it cannot be pulled at the moment of opening file, the data still cannot be pulled after 20 minutes.

    How to make sure excel pulls all data for each formula? Can I write extra code and make sure each formula working as expected? Actually, it is not really about VBA code, since VBA code already writes the formula into each cell, the issue is that excel cannot pull data for each formula, maybe there are too many symbols, but "too many" cannot be an excuse.

    Without completely pulling the data, I am not able to analyze the data.

    Thanks.

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by VAer; 09-01-2021 at 03:55 PM.

+ 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. VBA unprotect sheet refresh OLEDB connection Protect sheet with exceptions
    By MarcoZanin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2020, 04:27 AM
  2. [SOLVED] copy data from multiple sheet into last row of existed sheet and refresh pivot
    By sarat47 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2014, 06:49 AM
  3. Copied new sheet refresh link to master sheet
    By nagyorsi21 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-01-2013, 07:57 AM
  4. Replies: 0
    Last Post: 01-07-2013, 08:39 PM
  5. Need a VBA Code to refresh data and save the active sheet as a new workbook.
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2012, 08:50 AM
  6. Code to Refresh charts on separate sheet.
    By dgarris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2009, 09:11 AM
  7. Replies: 6
    Last Post: 12-21-2005, 07:20 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