Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max size of Excel ColumnWidth
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Max size of Excel ColumnWidth
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01129599
Message ID:
01129599
Views:
72
Hi everybody,

In my program fSplitIntoDbF I have the following piece of code:
** Assign new column names to the first row
				for lnI = 1 to m.lnCols
					.Cells(1,laFieldNames[m.lnI,3]).value = laFieldNames[m.lnI,1]
					.range(chr(64 + m.lnI) + ":" + chr(64 + m.lnI)).columns.columnwidth = ;
						.range(chr(64 + m.lnI) + ":" + chr(64 + m.lnI)).columns.columnwidth * 5 && To make sure long descriptions fit
				next
That gives
OLE IDispatch exception code 0 from Microsoft Office Excel: Unable to set the ColumnWidth property of the Range class..

So, there is some limit of ColumnWidth. How can I find it?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform