![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
My vb code utilizes the FarPoint(2.5.40) spread control which I load the ResultSet.Fields(i).name and ResultSet.Fields(i).values. When I execute the following code( bSave = vaSpreadResults.SaveTabFile("C:TEMPConstructionAnalysis.xls"))
and ShellExecute to excel, I only get the values and want to also get the column names displayed? How can I accomplish this? Thanks |
|
|
|
|
|
#2 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Heres the fix I made fyi:
Instead of loading the farpoint spread row 0 with rs.fields(i).name I load it to row 1, all subsequent rows in rs increment from row 2 forward. This allows the export to excel to utilize the SaveTabFile and shell out to excel displaying the headers followed by values. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|