ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2003 - SOAP (https://www.excelbanter.com/excel-programming/431506-excel-2003-soap.html)

AA2e72E

Excel 2003 - SOAP
 
Is there a way to <easily update a worksheet with a SOAP result? [... I am
looking for something like CopyFromRecordSet with ADO Recordset objects...]

The result I have returns a variable number of rows. Each row has several
named items, e.g.

res(0).Name
res(0).DOB

etc.

Thanks.

Patrick Molloy

Excel 2003 - SOAP
 
if your data has already populated a recordset object then yes

if rst is the popu;ated recordset then this line will drop the entire table
from row 2

Range("A2").CopyFromRecordset rst

for headers, you'll need to loop through the recordset fields

with rst
for col = 1 to .Fields.Count
cells(1,col) = .Fields(col-1).Name 'NOTE:fields are zero based, so 0
to (n-1) for n fields
next
end with


"AA2e72E" wrote in message
...
Is there a way to <easily update a worksheet with a SOAP result? [... I
am
looking for something like CopyFromRecordSet with ADO Recordset
objects...]

The result I have returns a variable number of rows. Each row has several
named items, e.g.

res(0).Name
res(0).DOB

etc.

Thanks.




All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com