+ Reply to Thread
Results 1 to 2 of 2

how to create button commande to refresh data in query in excel 2.

  1. #1
    Jean-Francois
    Guest

    how to create button commande to refresh data in query in excel 2.

    I have a excel spreedsheet that contain external data. I would like to put a
    button in the excel sheet to update the sheet without doing right click and
    refresh.
    My user here are very dummies.

  2. #2
    Nick Hodge
    Guest

    Re: how to create button commande to refresh data in query in excel 2.

    Jean Francois

    If this is external data then bringing it in should launch the external data
    toolbar. They will only need to click the exclamation (!) mark. Seems like
    re-inventing the wheel.

    If you must then put a button on the worksheet and assign it to this macro

    Sub refreshdata()
    Dim wks As Worksheet
    Dim qryTab As QueryTable
    Set wks = ActiveSheet
    For Each qryTab In wks.QueryTables
    qryTab.Refresh
    Next qryTab
    End Sub

    --
    HTH
    Nick Hodge
    Microsoft MVP - Excel
    Southampton, England
    [email protected]HIS


    "Jean-Francois" <[email protected]> wrote in message
    news:[email protected]...
    >I have a excel spreedsheet that contain external data. I would like to put
    >a
    > button in the excel sheet to update the sheet without doing right click
    > and
    > refresh.
    > My user here are very dummies.




+ 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