csv to xls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NEHU
    New Member
    • Aug 2007
    • 12

    csv to xls

    hello,
    well i need a code in vb6.0 that could directly save my csv file to xlsfile
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by NEHU
    hello,
    well i need a code in vb6.0 that could directly save my csv file to xlsfile
    Hi, i dont know if there's an easy way, but you can open the cvs in an excel application and then save it

    it should be something like

    [CODE=vb]dim obj1 as object
    set obj1=createobje ct("excel.appli cation")
    obj1.workbooks. open ("C:\myfile.csv ")
    obj1.workbooks( 1).saveas ("c:\myfile.xls ")[/CODE]

    HTH

    Comment

    Working...