View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Datasort Datasort is offline
external usenet poster
 
Posts: 50
Default How do I run an external command from within VBA

This is a long topic. I suggest that you look at ADO connections.
Look for the following

ADO command execution
ADO recordset objects
Excel CopyFromRecordset method

Good Luck.

--
Stewart Rogers
DataSort Software, L.C.


"k. moran" wrote:

Hi!

How do I run an external command from within VBA?
I want to execute a sql command from within Excel and take the SQL output an
import it into an Excel sheet for further processiing?

Thanks!