Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Filling a listbox with transpose of a range from an excel sheet


Hi I am doing some programming with VBA on excel and I am trying to fil
a list box with data from a range of cells on an excel sheet. I jus
could not figure out how to do this.

ex:

with userform1.listbox1
.column count = 5
.column = ("D1:CT5")
end with

userform1.show


If somebody can help me out, that will be great.

Thanx,
Viswanthan

--
viswanthankPosted from http://www.pcreview.co.uk/ newsgroup acces

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Filling a listbox with transpose of a range from an excel sheet

with userform1.listbox1
.columncount = 5
.List = Application.Transpose(Range("D1:CT5").Value)
end with

userform1.show

--
Regards,
Tom Ogilvy


"viswanthank" <viswanthank.1qd4hy@ wrote in message
...

Hi I am doing some programming with VBA on excel and I am trying to fill
a list box with data from a range of cells on an excel sheet. I just
could not figure out how to do this.

ex:

with userform1.listbox1
column count = 5
column = ("D1:CT5")
end with

userform1.show


If somebody can help me out, that will be great.

Thanx,
Viswanthank


--
viswanthankPosted from http://www.pcreview.co.uk/ newsgroup access



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Filling a listbox with transpose of a range from an excel sheet


Hi Cool that worked great.

I tried that already but did not know that I have to use .value at th
end.

Anyway, thanks a lot.

Viswanthan

--
viswanthankPosted from http://www.pcreview.co.uk/ newsgroup acces

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
Dynamically filling a static name (for querying an Excel range) Air_Cooled_Nut[_6_] Excel Programming 3 October 29th 04 09:57 PM
Dynamically filling a static name (for querying an Excel range) Air_Cooled_Nut[_7_] Excel Programming 0 October 29th 04 08:35 PM
Problem with Find filling a listbox vba farmer[_2_] Excel Programming 4 October 12th 04 06:55 PM
Excel VBA - How to transpose every fifth row to same column on another sheet rbelforti Excel Programming 2 July 7th 04 06:22 PM
Filling a listbox depending on font index Trevor[_3_] Excel Programming 0 October 1st 03 08:25 PM


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