+ Reply to Thread
Results 1 to 11 of 11

updating spreadsheets automatically

  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
    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,

  7. #7
    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.

  8. #8
    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.

  9. #9
    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.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Now add these two Workbook Event procedures
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  10. #10
    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?

  11. #11
    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

    Go to the VBE - I generally use Alt-F11 - other methods are available.

    In the VBA Project pane on the left double click on the Workbook object, in the left hand drop down of the big code window pick 'Workbook'.
    Then with the right hand drop down pick the Workbook_BeforeClose and Workbook_Open event procedures and put the code I gave you in there.

    Then in the VBA Project pane expand the Module object and double click the Module1.
    Then copy and paste the other three procedures into there.

    You can now close the VBE. The macros will start to run the next time you open the workbook.

+ 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