Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Junior Member
 
Posts: 13
Default listbox multiselect to control original cells

Is it possible to get the multiselection the users make in the listbox
correlate directly to the original cells the rows pertain to?

the reason is I need to be able to get the users to multi select the
cells they want to print and then send print commands to the documents
ancd drawings located in their hyperlinks. So if there was some way to
pull the Cells selections then I could work with this indefinately.
I''m unsure whether this is feasable, I was thinking of putting the
multiselect results into an array using the text values then doing a
vlookup or something, but the original drawing register sheet doesn't
have unique items just unique hyperlinks :P I cannot manipulate the
physical layout of the sheet itself as other macro's are located on
these sheets.

many thanks
Dave

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default listbox multiselect to control original cells

If the range is contiguous, maybe you could just loop through the listbox's
list--and then offset from the first cell of the range.


dim FirstCell as range
'set firstcell = to the firstcell in the range
With Me.ListBox1
For lCtr = 0 To .ListCount - 1
If .Selected(lCtr) Then
msgbox firstcell.offset(lctr,0).value
End If
Next lCtr
End With



ArmsteR wrote:

Is it possible to get the multiselection the users make in the listbox
correlate directly to the original cells the rows pertain to?

the reason is I need to be able to get the users to multi select the
cells they want to print and then send print commands to the documents
ancd drawings located in their hyperlinks. So if there was some way to
pull the Cells selections then I could work with this indefinately.
I''m unsure whether this is feasable, I was thinking of putting the
multiselect results into an array using the text values then doing a
vlookup or something, but the original drawing register sheet doesn't
have unique items just unique hyperlinks :P I cannot manipulate the
physical layout of the sheet itself as other macro's are located on
these sheets.

many thanks
Dave


--

Dave Peterson
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
Bug in multiselect listbox? Jos Vens[_2_] Excel Programming 2 February 8th 06 08:41 PM
Multiselect Listbox Francis Ang[_3_] Excel Programming 0 October 27th 04 02:21 AM
Multiselect Listbox Francis Ang[_3_] Excel Programming 2 October 25th 04 01:57 AM
multiselect on a listbox from Control toolbox Kanan Excel Programming 5 July 31st 04 12:01 AM
multiselect listbox CG Rosén Excel Programming 2 December 28th 03 05:17 PM


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