Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to automatically adapt column width with XML format?

Hi.
I'm developing an application that outputs its results to an XML file (with
Excel XP's DTD). The trouble is the column width, which is set at default.
Is there an XML tag which allow to adapt width automatically?

I thought about a VBA macro, but I noticed that VBA code isn't stored in XML
Excel's files.

Thanks in advance,
Francesco.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default How to automatically adapt column width with XML format?

Is there an XML tag which allow to adapt width automatically?

Yes but only for number and dates:

<Column ss:AutoFitWidth="1"/

You might want to get the Office 2003 XML Reference Schemas for more on
this:

http://www.microsoft.com/downloads/d...displaylang=en

--
Jim Rech
Excel MVP


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to automatically adapt column width with XML format?

Yes but only for number and dates:

Why? How can I adapt a string field?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column width format falcios Excel Discussion (Misc queries) 2 February 7th 10 06:21 AM
how do I automatically adjust a column width BABYPINK Excel Discussion (Misc queries) 3 June 16th 09 02:00 PM
Format Painter Column Width Sam Excel Discussion (Misc queries) 3 September 13th 07 12:20 AM
Column automatically adjusts width to fit text entries redsanders New Users to Excel 7 July 19th 07 03:20 AM


All times are GMT +1. The time now is 04:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"