Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Listbox Column Count and Width Dont work. Seems Easy

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Listbox Column Count and Width Dont work. Seems Easy

put semi-colons between each width:

0.75;0.75;0.75 etc.

"Brandon Johnson" wrote:

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Listbox Column Count and Width Dont work. Seems Easy

Point (pt) is the default - but I don't think you want .75 - perhaps 75.

75;75;75;75;75;75;75;75;75;75;75;75;75

--
Regards,
Tom Ogilvy


"Brandon Johnson" wrote:

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Listbox Column Count and Width Dont work. Seems Easy

ok i did that and added this code and it showed just blanks all the way
down. A() is an array. it would be helpful to use the .column property
but i dont know how to use that correctly so im using this. its still
not working though. any thoughts

lstResults.AddItem A(1) & ";" & A(2) & ";" & A(3) & ";" & _
A(4) & ";" & A(5) & ";" & A(6) & ";" & A(7) & ";" & A(8) &
_
";" & A(9) & ";" & A(10) & ";" & A(11) & ";" & A(12) & ";"
& A(13)

Giles B wrote:
put semi-colons between each width:

0.75;0.75;0.75 etc.

"Brandon Johnson" wrote:

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Listbox Column Count and Width Dont work. Seems Easy

ok tom that helped like big time. thankyou. i still have problem with
seperating them into different column now. thanks for the boost in
headway.

Brandon Johnson wrote:
ok i did that and added this code and it showed just blanks all the way
down. A() is an array. it would be helpful to use the .column property
but i dont know how to use that correctly so im using this. its still
not working though. any thoughts

lstResults.AddItem A(1) & ";" & A(2) & ";" & A(3) & ";" & _
A(4) & ";" & A(5) & ";" & A(6) & ";" & A(7) & ";" & A(8) &
_
";" & A(9) & ";" & A(10) & ";" & A(11) & ";" & A(12) & ";"
& A(13)

Giles B wrote:
put semi-colons between each width:

0.75;0.75;0.75 etc.

"Brandon Johnson" wrote:

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Listbox Column Count and Width Dont work. Seems Easy

with lstResults
.AddItem A(1)
for j = 2 to 13
.list(.listcount - 1, j - 1) = A(j)
Next
End With

--
Regards,
Tom Ogilvy


"Brandon Johnson" wrote:

ok tom that helped like big time. thankyou. i still have problem with
seperating them into different column now. thanks for the boost in
headway.

Brandon Johnson wrote:
ok i did that and added this code and it showed just blanks all the way
down. A() is an array. it would be helpful to use the .column property
but i dont know how to use that correctly so im using this. its still
not working though. any thoughts

lstResults.AddItem A(1) & ";" & A(2) & ";" & A(3) & ";" & _
A(4) & ";" & A(5) & ";" & A(6) & ";" & A(7) & ";" & A(8) &
_
";" & A(9) & ";" & A(10) & ";" & A(11) & ";" & A(12) & ";"
& A(13)

Giles B wrote:
put semi-colons between each width:

0.75;0.75;0.75 etc.

"Brandon Johnson" wrote:

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Listbox Column Count and Width Dont work. Seems Easy

Hi,

Even with the correct syntax I think you will have problems with
exceeding the limits of the control.

The help file say;
"Setting ColumnCount to 0 displays zero columns, and setting it to -1
displays all the available columns. For an unbound data source, there is
a 10-column limit (0 to 9)."

Cheers
Andy

Brandon Johnson wrote:
ok i did that and added this code and it showed just blanks all the way
down. A() is an array. it would be helpful to use the .column property
but i dont know how to use that correctly so im using this. its still
not working though. any thoughts

lstResults.AddItem A(1) & ";" & A(2) & ";" & A(3) & ";" & _
A(4) & ";" & A(5) & ";" & A(6) & ";" & A(7) & ";" & A(8) &
_
";" & A(9) & ";" & A(10) & ";" & A(11) & ";" & A(12) & ";"
& A(13)

Giles B wrote:

put semi-colons between each width:

0.75;0.75;0.75 etc.

"Brandon Johnson" wrote:


I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.





--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Listbox Column Count and Width Dont work. Seems Easy

Andy is correct (I was under the impression they had fixed this) - see my
answer to your later post for a work around.

--
Regards,
Tom Ogilvy


"Tom Ogilvy" wrote:

with lstResults
.AddItem A(1)
for j = 2 to 13
.list(.listcount - 1, j - 1) = A(j)
Next
End With

--
Regards,
Tom Ogilvy


"Brandon Johnson" wrote:

ok tom that helped like big time. thankyou. i still have problem with
seperating them into different column now. thanks for the boost in
headway.

Brandon Johnson wrote:
ok i did that and added this code and it showed just blanks all the way
down. A() is an array. it would be helpful to use the .column property
but i dont know how to use that correctly so im using this. its still
not working though. any thoughts

lstResults.AddItem A(1) & ";" & A(2) & ";" & A(3) & ";" & _
A(4) & ";" & A(5) & ";" & A(6) & ";" & A(7) & ";" & A(8) &
_
";" & A(9) & ";" & A(10) & ";" & A(11) & ";" & A(12) & ";"
& A(13)

Giles B wrote:
put semi-colons between each width:

0.75;0.75;0.75 etc.

"Brandon Johnson" wrote:

I have 13 columns id like to add. so i set the column count to 13 and
column bound to 0. I then put in 0.75 pt in the column width. How ever
do i do that 13 times or what do i do? can someone help please.




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
flash object dont work in my excel work sheet Nitn Excel Discussion (Misc queries) 0 July 4th 09 08:00 AM
Autofit doesn't work when column not enough width Alex St-Pierre Excel Programming 3 April 19th 06 07:35 PM
Autofit Row height or Column Width does not work Gunjani Excel Discussion (Misc queries) 2 October 11th 05 09:19 PM
Column Width property does not work LizW Excel Programming 1 September 16th 05 06:35 PM
Listbox that dont refresh automatically Freddie[_2_] Excel Programming 1 October 8th 04 07:25 AM


All times are GMT +1. The time now is 03:24 PM.

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"