Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default LIST BOX HELP

I'm just starting to use List Boxes, and Multi Select List Boxes.
I would like to do the following:

I have a List Box with a Row Source that refers to Sheet inside the
Wookbook. I would like to Click onto any one of the "Items" in the list Box
and when I do, it takes me to that Sheet.

The second example is to create a Print Selection, Here I would like to
have the ability to have "Check Boxes" so that I can choose any number of
boxes that I wish to Print. Each box is associated to a Print Range.

--
MJM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default LIST BOX HELP


set the listStyle property of the listbox to fmListStyleOption
and set the multiselect property to fmMultiSelectMulti

then

worksheets(Userform1.Listbox1.Value).Select

Dim rng as Range
with Useform1.listbox2
for i = 0 to .listcount - 1
if .selected(i) then
set rng = Range(.List(i))
rng.Printout
end if
Next
End with

--
Regards,
Tom Ogilvy

"MikeM" wrote:

I'm just starting to use List Boxes, and Multi Select List Boxes.
I would like to do the following:

I have a List Box with a Row Source that refers to Sheet inside the
Wookbook. I would like to Click onto any one of the "Items" in the list Box
and when I do, it takes me to that Sheet.

The second example is to create a Print Selection, Here I would like to
have the ability to have "Check Boxes" so that I can choose any number of
boxes that I wish to Print. Each box is associated to a Print Range.

--
MJM

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
Comparing List A to List B and add what's missing from List B Gilbert Excel Discussion (Misc queries) 2 July 20th 09 11:18 PM
Comparing List A to List B and add what's missing from List B Gilbert Excel Discussion (Misc queries) 1 July 20th 09 08:41 PM
validation list--list depends on the selection of first list Michael New Users to Excel 2 April 27th 06 10:23 PM
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 Ed Excel Worksheet Functions 5 September 12th 05 09:48 AM
find names on list 1 in list 2. list 1 4000 names list 2 400 name Ed Excel Worksheet Functions 1 September 4th 05 12:48 AM


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