Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Userform-List box help

Hi
I have a row of data ( row 9 --- column c through m) on a worksheet that I
would like to display in a listbox (in a userform). I know how to display a
column of data in a listbox...but not a row.
Is it possible to display a row of data in a listbox?

Thanks in advance for your help!
Kimberly


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Userform-List box help

Kimberly,

You can use the initialize event of the form

Private Sub UserForm_Initialize()
Dim x As Long

For x = 3 To 13
ListBox1.AddItem (Cells(9, x))
Next

End Sub

You can use a specific sheet with Sheets("Sheet1").Cells(9,x)
--
sb
"KimberlyC" wrote in message
...
Hi
I have a row of data ( row 9 --- column c through m) on a worksheet that

I
would like to display in a listbox (in a userform). I know how to display

a
column of data in a listbox...but not a row.
Is it possible to display a row of data in a listbox?

Thanks in advance for your help!
Kimberly




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
Userform list box population Alberto Ast[_2_] Excel Discussion (Misc queries) 3 November 21st 09 01:14 AM
VBA userform jcheko Excel Worksheet Functions 1 April 24th 08 08:38 PM
list userform Joanne Excel Discussion (Misc queries) 0 June 28th 07 01:18 AM
Userform Freshman Excel Worksheet Functions 4 November 9th 06 01:04 PM
Userform List box to Text Box hazel Excel Discussion (Misc queries) 1 September 16th 06 07:05 PM


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