+ Reply to Thread
Results 1 to 11 of 11

updating spreadsheets automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    09-22-2020
    Location
    canada
    MS-Off Ver
    office pro
    Posts
    13

    updating spreadsheets automatically

    Hi i have a spreadsheet that links to an online data source that is updating on a regular basis.
    Can someone tell me how i can copy and paste these updates into a separate tab or separate spreadsheet altogether?

    Updating spreadsheet has 10 rows of data that is updated every minute.
    I would like this data to be collected on the 2nd spreadsheet without erasing the previous cut/paste etc. So that over time this spreadsheet will have 100's of rows of data.

    thanks in advance.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: updating spreadsheets automatically

    One way would be a macro that runs every minute and copies the 10 rows to the second sheet.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-22-2020
    Location
    canada
    MS-Off Ver
    office pro
    Posts
    13

    Re: updating spreadsheets automatically

    Thanks Richard, i've never used macros in excel - only in MSAccess. can you possibly assist on this?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: updating spreadsheets automatically

    Sure,

    Would you upload the relevant workbook. See the big yellow banner at the top of the forum.

  5. #5
    Registered User
    Join Date
    09-22-2020
    Location
    canada
    MS-Off Ver
    office pro
    Posts
    13

    Re: updating spreadsheets automatically

    humm... trying to send attachment....
    Attached Files Attached Files

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: updating spreadsheets automatically

    What is the @QUOTE function?

    It's not one I recognise. Are you using Excel with some intermediary software to access an external source?

    I had originally thought you were using Excel's Data Connection functionality to a table on a URL link.

  7. #7
    Registered User
    Join Date
    09-22-2020
    Location
    canada
    MS-Off Ver
    office pro
    Posts
    13

    Re: updating spreadsheets automatically

    Yes someone created an addin that pulls stock data off the internet .
    I can manually cut/paste and change that section for each cell but it's time consuming. I was hoping there was a way to manually update the cells in column A and have the rest of the columns update accordingly.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: updating spreadsheets automatically

    Of course I don't have the add in so can't test it, hence my puzzlement over the @QUOTE

    However try this. Copy the column labels in A1:Y1 of Live data to A1:Y1 in raw data

    Now add these module level procedures. Change the TimeValue as necessary.

    Option Explicit
    Dim RunTime
    
    Sub TimerStart()
        Application.ScreenUpdating = False
        ActiveWorkbook.RefreshAll
        RunTime = Now + TimeValue("00:01:00")
        Application.OnTime RunTime, "CopyData"
        Application.ScreenUpdating = True
    End Sub
    Sub TimerStop()
        On Error Resume Next
        Application.OnTime RunTime, "RefreshTime", Schedule:=False
        On Error GoTo 0
    End Sub
    Sub CopyData()
        Sheet1.Range("A1").CurrentRegion.Offset(1, 0).Copy
        Sheet2.Range("A" & Rows.Count).End(xlUp).Cells(2, 1).PasteSpecial (xlPasteValues)
        TimerStart
    End Sub
    Now add these two Workbook Event procedures
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
       Call TimerStop
    End Sub
    Private Sub Workbook_Open()
       Call TimerStart
    End Sub

  9. #9
    Registered User
    Join Date
    09-22-2020
    Location
    canada
    MS-Off Ver
    office pro
    Posts
    13

    Re: updating spreadsheets automatically

    Thanks Richard.
    I've never dealt with module procedures before and you better explain what i'm to do with this code exactly?

  10. #10
    Registered User
    Join Date
    09-22-2020
    Location
    canada
    MS-Off Ver
    office pro
    Posts
    13

    Re: updating spreadsheets automatically

    Would be great if livedata got dumped into rawdata every minute. Idea is to have compiling list of entries in the rawdata wksh
    tks,

+ 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. Help with updating spreadsheets simultaneously
    By rramoutar7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2013, 05:45 AM
  2. updating grouped spreadsheets
    By rramoutar7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2013, 09:46 AM
  3. Updating Pricing Across Several Spreadsheets
    By sabbur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2012, 10:53 AM
  4. Excel 2007 : Two spreadsheets updating each other
    By oli87 in forum Excel General
    Replies: 0
    Last Post: 03-25-2011, 05:42 AM
  5. Weekly updating spreadsheets
    By Stewie1288 in forum Excel General
    Replies: 1
    Last Post: 06-25-2009, 02:47 AM
  6. Automated updating between two spreadsheets
    By xanderxls in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2009, 05:03 PM
  7. [SOLVED] Linking and updating spreadsheets
    By KC8DCN in forum Excel General
    Replies: 3
    Last Post: 02-17-2006, 09:10 AM
  8. [SOLVED] Updating synchronized spreadsheets
    By Lukasz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2005, 08:05 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