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.
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.
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
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS
"Jean-Francois" <Jean-Francois@discussions.microsoft.com> wrote in message
news:BFC69F20-363A-4EBE-BA6B-CF46DB6DF059@microsoft.com...
>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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks