Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default View cell range in userform

Is is possible to view a range of cells in a userform?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default View cell range in userform


"Jacob" schreef in bericht
ups.com...
Is is possible to view a range of cells in a userform?


In cel A1 you put 'Number', in B1 'Color'
A2: 1, B2: Red
A3: 2, B3: Green
A4: 3, B4: Blue
A5: 4, B5: Yellow
A6: 5, B6: Black


In VB Editor, insert a Userform, which is automatically called 'UserForm1'.
If you can't see the project's properties, then press the F4 button.

From the tools window, select a ListBox, which is automatically called
'ListBox1'.
In it's properties, you'll set ColumnCount to 2.
Also, set ColumnHeads to True
And finally, put the ListBox RowSource to: Sheet1!A2:B6


There u go.


Above is just a simple sample, of course you can also dynamically create the
RowSource using VBA, or use a ListView control or any kind of FlexGrid to
display your data.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default View cell range in userform

brilliant! thanks!


moon wrote:
"Jacob" schreef in bericht
ups.com...
Is is possible to view a range of cells in a userform?


In cel A1 you put 'Number', in B1 'Color'
A2: 1, B2: Red
A3: 2, B3: Green
A4: 3, B4: Blue
A5: 4, B5: Yellow
A6: 5, B6: Black


In VB Editor, insert a Userform, which is automatically called 'UserForm1'.
If you can't see the project's properties, then press the F4 button.

From the tools window, select a ListBox, which is automatically called
'ListBox1'.
In it's properties, you'll set ColumnCount to 2.
Also, set ColumnHeads to True
And finally, put the ListBox RowSource to: Sheet1!A2:B6


There u go.


Above is just a simple sample, of course you can also dynamically create the
RowSource using VBA, or use a ListView control or any kind of FlexGrid to
display your data.


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
mult. w/sheets need identical view when opening (range, mag, cell) Peter Setting up and Configuration of Excel 2 February 12th 07 12:28 AM
View only UserForm? Claud Balls Excel Programming 4 January 5th 05 05:13 AM
View and Cell Sum Range Dewayne Excel Discussion (Misc queries) 4 December 29th 04 03:23 PM
limit worksheet view to specified cell range Mike Setting up and Configuration of Excel 2 December 16th 04 11:13 PM
View the data in a cell on a userform Henry[_5_] Excel Programming 0 January 8th 04 11:53 PM


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