using excel control in visual basic 6

spumbu1977

New Member
Joined
Dec 28, 2005
Messages
16
hi

i hope you can help

i am currently trying to paste a text file into an excel spreadheet control from within vb6 and am having no luck

the text file is created by a sql string which reads from a sql database and is unfortunately not delimeted in the text file creation however it is possible to do delimetation after it has been pasted in to excel itself , but the proble i am having is copying it into vb6 excel component

can anyone offer any opinions or examples that might be able to help

thanks in advance

Rob
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You may be able to convert the text file and read it in list view and convert the send the list items to the excel sheet as an alternative option.

You would create an excel object using the excel object library, and you can write to that object by setting the ranges etc using that object model
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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