Excel get error.

mdelport

New Member
Joined
Apr 4, 2011
Messages
1
I am using Vb2005 and open a text file in Excel 2007.
As soon as finesed open Excel do not respond and exit.

Dim columnarray(,) As String = New String(,) {{1, 1}, _
{4, 1}, {10, 1}, {16, 1}, {20, 1}, _
{21, 1}, {29, 1}, {29, 1}, {37, 1}, _
{38, 1}, {44, 1}, {65, 1}, {73, 1}, _
{81, 1}, {89, 1}, {97, 1}, {105, 1}}

xlApp.Workbooks.OpenText(Filename:=par_ICDF_Dest &
"ICDF.dat", _
Origin:=Excel.XlPlatform.xlMSDOS, _
StartRow:=1, DataType:=Excel.XlTextParsingType.xlFixedWidth, _
FieldInfo:=columnarray,)

xlBook = xlApp.ActiveWorkbook

Can someone help please.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

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