Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's the code:
For iCol = 1 To fldCount xlWs.Cells(1, iCol).Value = rst.fields(iCol - 1).Name Next xlWs.Cells(2, 1).CopyFromRecordset rst I'd like to limit the data copied based on the contents of field 1 and 2 (which are named SALE and LOT in my source MS-Access query "rst"). I have a cell in the spreadsheet with the desired SALE and LOT. I read these two text strings into the VB code, but don't know the syntax to limit the CopyFromRecordset method (if it's even possible). Thanks, Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search Sample for Oracle-to-Excel extraction with CopyFromRecordset | Excel Discussion (Misc queries) | |||
CopyFromRecordset Problem | Excel Discussion (Misc queries) | |||
Format data in Excel after using copyfromrecordset | Excel Discussion (Misc queries) | |||
CopyFromRecordset only pastes 1823 characters in a cell!? | Excel Programming | |||
Copyfromrecordset Bug ? | Excel Programming |