+ Reply to Thread
Results 1 to 8 of 8

Query to refresh on Open

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Query to refresh on Open

    In Excel 2000, I have several cells that are pointed at a query in Access. Instead of me manually having to refresh the data is there a way to have this query auto-run so that the data is refreshed when the spreadsheet is opened?
    Last edited by jo15765; 08-24-2011 at 09:28 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Query to refresh on Open

    Isn't that an option when you right-click them and choose Data Range Properties? (I can't remember that far back)
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Query to refresh on Open

    RomperStomper it is. Thank you, I did not know that was an option. Now one more question based off of this question. Since it can be automatically refreshed on open, we use a .pdf convertor Add-in for Excel is there a way to schedule that .pdf conversion? Or possibly set the conversion on a timer so that it auto converts to .pdf at like noon each day?

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Query to refresh on Open

    If you can run the addin through code, then you can also use the Workbook_Open event to refresh the tables and convert the workbook to PDF when it's opened. You could use the Windows Scheduler if you want that to happen at a specific time every day.

  5. #5
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Query to refresh on Open

    I am only a beginner with VB coding, what would the code be I used to have the queries refresh on open and have the pdf auto convert?

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Query to refresh on Open

    I don't know since I don't know use your PDF converter, I'm afraid.

  7. #7
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Query to refresh on Open

    Argh! Thanks for the info on auto refresh queries!

    And I seem to have forgotten how to mark a thread as solved, can you refresh my memory?

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Query to refresh on Open

    Sure:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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