Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
SW wrote:
Treating it as a Jet SQL source sounds useful. How do I do that? Sub just_four_lines() Dim rs As Object Set rs = CreateObject("ADOR.Recordset") rs.Open _ "SELECT COUNT(*) as customer_count," & _ " Country FROM MyFile#csv" & _ " GROUP BY Country" & _ " ORDER BY COUNT(*), Country", _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\MyFolder\;" & _ "Extended Properties='Text;HDR=Yes';" Sheet1.Range("A1").CopyFromRecordset rs End Sub For more details <g, see: http://msdn.microsoft.com/library/de...ng03092004.asp Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
List Box with lookup facility | Excel Worksheet Functions | |||
Is there a 'floating key/ legend' facility? | Excel Discussion (Misc queries) | |||
Spelling Facility | New Users to Excel | |||
how do i use LOTUS combine facility in Excel | Excel Discussion (Misc queries) | |||
search facility | Excel Programming |