For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > March 2004 > Re: Need Help Visual Basic-Excel Troubles









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Need Help Visual Basic-Excel Troubles
Bonj

2004-03-31, 4:30 pm

thanks for your Message, but this was my first trail and the result was not
a correct and beautiful Excel Table.

Oh, well we can't have that can we! :-)

I don“t know i create a correct Excelsheet from my Textfile inside Visual
Basic. And i hope you forgive me my very bad english -))

That's alright, I do. You should post more information detailing what part of the process is not working. For instance, you say you 'don't end up with a correct and beautiful Excel table'. Can you define 'correct and beautiful'? Can you describe how your
actual outputted Excel sheet is falling short of this? Can you post the code you are using? Can you post a (small!) example of the data being converted?

You say you don't get a correct *and beautiful* spreadsheet... BTW, it is easier to have a template with the formatting etc. on, such as borders, column headings, colors, frames, etc. then open this up and put the data into it and resave it, than to progr
amatically do everything from scratch.


Very thanks
Olli

"Bonj" <a@b.com> schrieb im Newsbeitrag
news:egspfnSEEHA.1604@TK2MSFTNGP11.phx.gbl...[color=darkred]
> dim xlapp as object, xlwbk as object
> set xlapp = createobject("excel.application")
> set xlwbk = xlapp.workbooks.open("c:\source.txt")
> xlwbk.saveas "c:\dest.xls"
> xlapp.quit
> news:4060b66d$0$23554$91cee783@newsreade
r01.highway.telekom.at...
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com