+ Reply to Thread
Results 1 to 6 of 6

Need help with refreshing external data from a csv file every second

  1. #1
    Registered User
    Join Date
    12-30-2015
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    22

    Need help with refreshing external data from a csv file every second

    (SOLVED) I'm new to VBA on Excel, but i really need the program to refresh automatically the data from a dynamic CSV file that continuousily change it's values. It works fine on excel, but it's limited to <1 minute until the new refreshing. I tried different codes for VBA, found on searches with the same problem, but nothing happens when i run the macro. I would like to refresh like every 1 second. Someone here perhaps can show me a code on vba to make this refresh every second? I really appreciate
    Last edited by coringa; 12-31-2015 at 07:45 PM.

  2. #2
    Registered User
    Join Date
    12-30-2015
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    22

    Re: Need help with refreshing external data from a csv file every second

    Someone help me just to fix the code. I recorded a macro, i clicked several times on refresh, and got this code:

    Sub Macro1()
    '
    ' Macro1 Macro
    '

    '
    ActiveWorkbook.RefreshAll
    ActiveWorkbook.RefreshAll
    ActiveWorkbook.RefreshAll
    ActiveWorkbook.RefreshAll
    ActiveWorkbook.RefreshAll
    End Sub

    Someone could,complete this VBA macro for me in a way it loops forever? It would do. or it works for a certains amount of time. I just need the remaining code, because this
    works for like only a second, i need it to work in loops, or certains amount of time..

    Thanks for helping

  3. #3
    Registered User
    Join Date
    12-30-2015
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    22

    Re: Need help with refreshing external data from a csv file every second

    Or it could be repeated this code above, every x time, like 1 second, it's better than infinite loops. I just need someone to complete the code for me, for a programmer is really easy

  4. #4
    Registered User
    Join Date
    10-18-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    2010
    Posts
    38

    Re: Need help with refreshing external data from a csv file every second

    Greetings,

    Please Login or Register  to view this content.
    Maybe this will help.

    Regards,
    Daniel
    Last edited by dafer660; 12-31-2015 at 09:22 AM. Reason: Forgot the If to stop the loop

  5. #5
    Registered User
    Join Date
    12-30-2015
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    22

    Re: Need help with refreshing external data from a csv file every second

    Thanks a lot Daniel, you're the best. Helping others just for kindness. I tried first, the code workd perfect after deleting the if timer part. Thanks again wish you great new year
    Last edited by coringa; 12-31-2015 at 04:22 PM.

  6. #6
    Registered User
    Join Date
    10-18-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    2010
    Posts
    38
    Quote Originally Posted by coringa View Post
    Thanks a lot Daniel, you're the best. Helping others just for kindness. I tried first, the code workd perfect after deleting the if timer part. Thanks again wish you great new year
    No problem friend.

    Just put it as solved and i'm glad it helped you.

    Great year as well.

    Regards,
    Daniel

+ 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. external data connections are not refreshing even with VBA
    By krishna2221 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2014, 04:00 AM
  2. [SOLVED] Pivot Charts from external data not refreshing
    By morgaad1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-03-2014, 01:08 PM
  3. Preserve formatting in existing file when refreshing from external source
    By justmatt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2012, 01:57 AM
  4. External Data Not Automatically Refreshing Correctly
    By paulevo in forum Excel General
    Replies: 0
    Last Post: 01-07-2009, 01:06 PM
  5. inserting rows when refreshing external data
    By jen_cg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2007, 09:49 AM
  6. Refreshing External Web Data Exactly on Minute
    By inwalkedbud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2007, 03:00 PM
  7. [SOLVED] Query to external data not refreshing
    By R Ormerod in forum Excel General
    Replies: 1
    Last Post: 04-01-2005, 04:06 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