Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic
csv to xls
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
NEHU
New Member
Join Date:
Aug 2007
Posts:
12
#1
csv to xls
Nov 15 '07, 10:13 AM
hello,
well i need a code in vb6.0 that could directly save my csv file to xlsfile
kadghar
Recognized Expert
Top Contributor
Join Date:
Apr 2007
Posts:
1302
#2
Nov 15 '07, 04:01 PM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment