Sign in or 

People just like you can add or edit the content on this site. If you want to try editing, but aren't ready to add to this site, try our demo area.
Read more about editing pages at Wetpaint Central.
)
'Puts the results of a SQL statement into the Excel worksheet.End Function
'Returns row count.
'vsStartCell is a cell identifier like "A1" of the
'upper left corner of where the results should go.
' Call PutRecordsetInCells(rs, oWorksheet, "A1")
Dim i, iRowCount
For i = 0 To vrs.Fields.Count - 1With voWorksheet.Range(vsStartCell).Offset(0, i)Next.Value2 = vrs.Fields(i).NameEnd With
.Font.Bold = True
.Borders(9).LineStyle = 1 ' <-- 9 means bottom, 1 means continuous.
iRowCount = voWorksheet.Range(vsStartCell).Offset(1, 0).CopyFromRecordset(vrs)
PutRecordsetInCells = iRowCount
2buck |
Latest page update: made by 2buck
, Dec 2 2006, 12:09 PM EST
(about this update
About This Update
Edited by 2buck
1 word added 1 word deleted view changes - complete history) |
|
More Info: links to this page
|