Excel - can A2k Row values become Column Headers ?

S

saustin

Hi All,
Have a !!$% excel workbook that i need to populate
with different values from two A2K queries. Is it possible
to create excel column headers from A2k row values ? In
this case I have 60 of them. Have always just populated an
excel worksheet with a query and the field names have
become the excel column header names.
Once this is accomplished i then need to update
certain excel rows with values from that query rows.

Have never done anything but a complete worksheet
creation from a query so any ideas are greatly
appreciated.

Thanks, Steve.
 
D

Dev Ashish

Is it possible
to create excel column headers from A2k row values ?

Look at Transpose method in Excel help. If you are using ADO, then you can
transpose the resultset from GetRows method. If you are using DAO, use
CopyFromRecordset to first transfer the records, and then use Transpose in
Excel by copying all the cells and then PasteSpecial with Transpose:=true.

-- Dev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top