Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 38
Default ColumnWidths property

Hi

I created a form which contains some list box controls. I set the
ColumnWidths property with the following VBA command:

..ColumnWidths = "0;48;0"

This works fine except with a chinese Excel & Windows version. The following
error message is displayed:

Run-time error '2147352571 (80020005)';
Could not set the ColumnWidths property. Typeconflict.


I suppose that this has something to do with the list seperator, but I don't
know how to set the right seperator. Any ideas?

Tom


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default ColumnWidths property

Tom,

Googling around I found this. Don't know if it helps:

? Application.International(xlListSeparator)
,

hth,

Doug

"Tom" wrote in message
...
Hi

I created a form which contains some list box controls. I set the
ColumnWidths property with the following VBA command:

.ColumnWidths = "0;48;0"

This works fine except with a chinese Excel & Windows version. The
following error message is displayed:

Run-time error '2147352571 (80020005)';
Could not set the ColumnWidths property. Typeconflict.


I suppose that this has something to do with the list seperator, but I
don't know how to set the right seperator. Any ideas?

Tom



  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 38
Default ColumnWidths property

Doug

I already tested this but this doesn't work.

Thomas



"Doug Glancy" schrieb im Newsbeitrag
...
Tom,

Googling around I found this. Don't know if it helps:

? Application.International(xlListSeparator)
,

hth,

Doug

"Tom" wrote in message
...
Hi

I created a form which contains some list box controls. I set the
ColumnWidths property with the following VBA command:

.ColumnWidths = "0;48;0"

This works fine except with a chinese Excel & Windows version. The
following error message is displayed:

Run-time error '2147352571 (80020005)';
Could not set the ColumnWidths property. Typeconflict.


I suppose that this has something to do with the list seperator, but I
don't know how to set the right seperator. Any ideas?

Tom





  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 38
Default ColumnWidths property

In the online help the problem is described as follows:

To separate column entries, use semicolons (;) as list separators. In
Windows, use the list separator specified in the Regional Settings section
of the Windows Control Panel to change this value.

I tried to use the Application.International(xlListSeparator) property, but
it doesn't seem to be the right way.


"Doug Glancy" schrieb im Newsbeitrag
...
Tom,

Googling around I found this. Don't know if it helps:

? Application.International(xlListSeparator)
,

hth,

Doug

"Tom" wrote in message
...
Hi

I created a form which contains some list box controls. I set the
ColumnWidths property with the following VBA command:

.ColumnWidths = "0;48;0"

This works fine except with a chinese Excel & Windows version. The
following error message is displayed:

Run-time error '2147352571 (80020005)';
Could not set the ColumnWidths property. Typeconflict.


I suppose that this has something to do with the list seperator, but I
don't know how to set the right seperator. Any ideas?

Tom





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ColumnWidths property


It's "Application.International(xlRowSeparator)"


--
bighead


------------------------------------------------------------------------
bighead's Profile: http://www.excelforum.com/member.php...o&userid=27048
View this thread: http://www.excelforum.com/showthread...hreadid=531674



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
Combobox, Controlling columnwidths i curtain Claus[_3_] Excel Programming 0 December 5th 05 01:19 PM
PasteSpecial Paste:=ColumnWidths Arvi Laanemets Excel Programming 3 February 8th 05 01:46 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM
listbox.Columnwidths question Stuart[_5_] Excel Programming 1 September 21st 03 07:26 PM
Paste columnwidths in Xl2k problem Stuart[_5_] Excel Programming 3 September 4th 03 05:09 PM


All times are GMT +1. The time now is 04:33 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"