+ Reply to Thread
Results 1 to 12 of 12

Refreshing connected data

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Refreshing connected data

    I used a query to select and sort data of a worksheet "OriginalData". The query result is shown in another worksheet "Q_OriginalData". When I change or add data in the "OriginalData" worksheet, I want to see them also in the query worksheet. I followed the instructions as given in https://support.office.com/en-us/art...f-c87b9b18c092,

    To refresh a specific data connection in the workbook, click a cell in the external data range. On the Data tab, in the Connections group, click the arrow next to Refresh All, and then click Refresh
    But without any results. Changes are not shown in the worksheet "Q_OriginalData"

    Who can help?

    Kind regards

    Jan (John)

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Refreshing connected data

    That should refresh the data in "Q_OriginalData".
    Maybe a bit of a bore, but did you save "OriginalData" after making the changes?
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    Hi Tsjallie

    I closed the excel file and reopened it, whitout any change in the query data worksheet "Q_OriginalData".

    Kind regards

    Jan

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Refreshing connected data

    Can you upload both workbooks or representative cut down copies, anonymized if necessary.

  5. #5
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    I will do that, but not earlier then next week.

    Kind regards


    Jan

  6. #6
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    Hi Tsjallie

    Here is the excel file with 2 worksheets, the first one the original and the second one the query sheet. In the original sheet I added already two records/rows with AAAtest(). After update the qyuery, the AAAtest should be the first recond/row in the second worksheet.
    I hope you can help me.

    Kind regards

    Jan

  7. #7
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    sorry, I forgot the file. How do I upload this?

  8. #8
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    It took a while, but the file is attached now.

    Jan
    Attached Files Attached Files

  9. #9
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Refreshing connected data

    The query in tab QAccessPrograms looks at c:\users\jan\desktop\bibliotheek_v1.xlsm. Not at the other tab AccessPrograms. But that probably happened when you made a copy for me.
    The real problem can be found in the Query.
    There is a step Rijen gefilterd which has this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Weird thing is that PQ sees the content of the cells in the Module column for the test entries as null. And that's not "".
    Presentation1.png
    That's why the test entries don't show up.

    When you change the formula to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    they will be included (but you will have the save the workbook first as PQ reads from disk).

  10. #10
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    Hi Tsjallie

    Thanks a lot. It works!

    I changed also the absolute file reference c:\users\jan\desktop\bibliotheek_v1.xlsm into bibliotheek_v1.xlsm. But that was not accepted. Is there a possibility to use a relatief refence to the file used?

    Kind regards

    Jan

  11. #11
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Refreshing connected data

    Here's a nice description of how to reference named ranges in PQ.
    In the attached workbook I used that technique.
    The named range FilePath references Sheet1!A1. Change that path to your needs.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-07-2014
    Location
    the Netherlands
    MS-Off Ver
    2016
    Posts
    56

    Re: Refreshing connected data

    Hi Tsjallie

    Fine there is a solution. I will study the link and the file you attached.

    Kind regards

    Jan

    PS. I understand the approach. Thanks a lot for all the help.
    Last edited by Jan Lichtenbelt; 02-06-2019 at 05:59 AM.

+ 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. Autosave and autorefresh data in connected workbooks
    By neboland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2018, 03:54 AM
  2. changing data source for all tables connected with slicer
    By ScottLor in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-14-2017, 08:56 AM
  3. Pivot chart connected with data
    By piotr1210 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-04-2016, 02:58 AM
  4. Formula to Indicate Alphabetical Data Connected to Numeric Data
    By tcluer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2014, 08:00 PM
  5. Replies: 3
    Last Post: 06-14-2012, 02:57 PM
  6. Excel 2007 : How to search and quantify connected data?
    By Sarianna in forum Excel General
    Replies: 2
    Last Post: 10-05-2011, 06:05 AM
  7. Replies: 0
    Last Post: 07-21-2005, 07:06 AM

Tags for this Thread

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