tags:

views:

86

answers:

2

O have a ,,export to excel" function, I have some tables and it works fine, but I have one single problem.

For moving to the next line I use <br />, but what if I want to switch to the next column? What tag can I use to switch to the next column?

Thanks

A: 

If you use commas and make your file a .csv, that would be one way. If you use tabs, then have it read as a tab delimited file. Basically, you need to tell Excel what your delimiter (separator character) is, and it will handle it from there.

justkt
It's just the html code, just like you had a html file, but with extension .xls. It opens okay, but I can't switch to B1,B2,B3,B4,B5 , All my informations are stored in A1,A2,A3,A4,A5,A6,A7,etc etc..... Do you understand? I need to go to B1 or C1 for example and store some informations there
FinalDestiny
@FinalDestiny - Here's some information on telling Excel what delimiter (character) you use to change columns. Does the idea of a delimiter make sense? http://www.journalofaccountancy.com/Issues/2003/Jul/MakeExcelALittleSmarter.htm
justkt
yah, but I want to do this through html, and not in excel. When I save the excel file, it should be ready with all the needed changes.
FinalDestiny
Why not export your HTML to CSV, then?
justkt
+2  A: 

Simple HTML tags are supported on a limited basis by Excel. There used to be a list of supported HTML tags as well as some HTML extensions supported by Excel (from Excel 97 onwards), but I can't find it on MSDN anymore. Here's an alternate link:

http://www.code4lifesoftware.com/articles/msexcelreadme.htm

The new XML/HTML format supported from Excel 2000 onwards is a lot more complex, and requires more work:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoffxml/html/ofxml2k.asp

Take a look at these links, hopefully you'll find the syntax you're looking for!

code4life