ShellExecute via VB to Excel

ThomasJosephScanlon

New Member
Joined
Apr 1, 2002
Messages
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
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top