+ Reply to Thread
Results 1 to 3 of 3

running text import wizard through c#

  1. #1
    Registered User
    Join Date
    04-20-2009
    Location
    Canton, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    running text import wizard through c#

    I have a data file that I need to download and convert from text to xls to then do further manipulation. When I manually fire up excel, open the text file and leave all the text import wizard defaults I can then work with the resulting xls file programmatically. When I use the following code I get errors when I try to open the resulting xls file. I haven't been able to find much about the different options in the OpenText file command so I'm not sure what properties I'm setting incorrectly that the wizard automatically sets correctly. It's a tab delimited file. Can anyone tell me what options I need to set to get it converted correctly? Thanks.

    Please Login or Register  to view this content.
    Last edited by cakewalkr7; 04-20-2009 at 10:52 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: running text import wizard through c#

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: running text import wizard through c#

    Thanks.

    You may get lucky and receive an answer here, but the forum is generally very VBA-centric. You might look for a C# forum.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1