Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default user form - data range


Hi,

Instead of coding every possible AddItem for a List box, how do i set
it on the user form to cover a range of data on a separate worksheet?


--
sam1
------------------------------------------------------------------------
sam1's Profile: http://www.excelforum.com/member.php...o&userid=18280
View this thread: http://www.excelforum.com/showthread...hreadid=526857

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default user form - data range

Me.ListBox1.RowSource = Worksheets("Sheet1").Range("A1:A10").Address

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"sam1" wrote in message
...

Hi,

Instead of coding every possible AddItem for a List box, how do i set
it on the user form to cover a range of data on a separate worksheet?


--
sam1
------------------------------------------------------------------------
sam1's Profile:

http://www.excelforum.com/member.php...o&userid=18280
View this thread: http://www.excelforum.com/showthread...hreadid=526857



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default user form - data range

If it is on a separate worksheet as stated, it requires a bit more

Me.ListBox1.RowSource =
Worksheets("Sheet1").Range("A1:A10").Address(Exter nal:=True)

--
Regards,
Tom Ogilvy


"Bob Phillips" wrote:

Me.ListBox1.RowSource = Worksheets("Sheet1").Range("A1:A10").Address

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"sam1" wrote in message
...

Hi,

Instead of coding every possible AddItem for a List box, how do i set
it on the user form to cover a range of data on a separate worksheet?


--
sam1
------------------------------------------------------------------------
sam1's Profile:

http://www.excelforum.com/member.php...o&userid=18280
View this thread: http://www.excelforum.com/showthread...hreadid=526857




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default user form - data range


Thanks for info, I'm tring to put Times in the combo box but when i
select time values, they convert to numbers in the combobox, how do i
keep the Time format?


--
sam1
------------------------------------------------------------------------
sam1's Profile: http://www.excelforum.com/member.php...o&userid=18280
View this thread: http://www.excelforum.com/showthread...hreadid=526857

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default user form - data range

Private Sub Combobox1_Click()
Combobox1.Value = format(Combobox1.Value,"hh:mm:ss")
End sub

--
Regards,
Tom Ogilvy


"sam1" wrote in message
...

Thanks for info, I'm tring to put Times in the combo box but when i
select time values, they convert to numbers in the combobox, how do i
keep the Time format?


--
sam1
------------------------------------------------------------------------
sam1's Profile:

http://www.excelforum.com/member.php...o&userid=18280
View this thread: http://www.excelforum.com/showthread...hreadid=526857



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
User Form - Range Selector Mike Archer Excel Programming 1 March 14th 06 10:31 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
User form browsing for a range on a sheet? Don Wiss Excel Programming 3 September 22nd 04 03:02 AM
passing a range to a user defined function using a form davek Excel Programming 1 December 24th 03 07:40 AM
My First User Form - How to Select Range(s) and Print Bruce Roberson[_2_] Excel Programming 3 July 25th 03 03:09 AM


All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"