View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
AFSSkier AFSSkier is offline
external usenet poster
 
Posts: 94
Default Click Button to Load External Data Into Spreadsheet

I have Excel 2007 & want to create a command button to "Refresh All" reports
in a workbook. Which command button would be best & can someone help me with
the code?
--
Thanks, Kevin


"keepITcool" wrote:


Via Data/Import external data
you create a QueryTable.

that querytable can be refreshed when you rightclick it
and choose refresh from the popup.

(alternatively you can put a button next to it to call the refresh
method of the QueryTable object)



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


simsjr wrote :

Hi Folks,

I'm trying to figure out the easiest way to create a spreadsheet
template with an "update" button on it. When clicked, this button
should tell Excel to grab data from an external database and place it
in specified columns. Furthermore, this Excel template should be able
to apply conditional formatting to the new data if it meets certain
criteria.

Do I need to know VB for this, or can a macro do this work for me?