Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default ListView selection

Hello,

How do I allow a user to selrct the content of a ListView and copy it
by a RightClick

Thanks
Avi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default ListView selection

ListView is not a built in function of VBA. You would have to construct the
list in Excel and then develop the controls and code for a user to display it
by clicking a button or using a keyboard command key.

"avi" wrote:

Hello,

How do I allow a user to selrct the content of a ListView and copy it
by a RightClick

Thanks
Avi


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default ListView selection

On Oct 7, 6:54 pm, JLGWhiz wrote:
ListView is not a built in function of VBA. You would have to construct the
list in Excel and then develop the controls and code for a user to display it
by clicking a button or using a keyboard command key.

"avi" wrote:
Hello,


How do I allow a user to selrct the content of a ListView and copy it
by a RightClick


Thanks
Avi


Hello Avi,

Here is a sample of List View I used in VBA. My UserForm had a
ListView and 3 TextBoxes. This is taken from the Click event...

Private Sub ListView1_ItemClick(ByVal item As MSComctlLib.ListItem)

Dim RowNumber

RowNumber = item.Index

With ListView1.ListItems(RowNumber)
TextBox1.Text = .Text
TextBox2.Text = .SubItems(1)
TextBox3.Text = .SubItems(2)
.EnsureVisible
End With

End Sub

The Text property returns the item in the first column. Each
additional column is designated by the SubItems property. To JLGWhiz -
the ListView control can be added by going to "Additional Controls..."
under Tools menu in the VBIDE. You must have a UserForm in your
project selected and the control toolbox visible to access these
controls.

Sincerely,
Leith Ross

  #4   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default ListView selection

Tanks

Avi

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
ListView information Alex St-Pierre Excel Programming 1 October 26th 06 11:45 AM
Listview Question vqthomf Excel Programming 2 January 5th 06 05:43 PM
ListView Question vqthomf Excel Programming 0 November 24th 05 01:08 PM
bug listview? RB Smissaert Excel Programming 2 September 2nd 04 02:34 PM
How to use Listview control kvenku[_10_] Excel Programming 2 June 1st 04 05:45 AM


All times are GMT +1. The time now is 07:41 AM.

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"