View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
kvenku[_10_] kvenku[_10_] is offline
external usenet poster
 
Posts: 1
Default How to use Listview control

Hi,
I am using a listview control and populated the values.
My listview control name is LlstProfiles. I need to use view a
Report.
e.g
LlstProfiles.View = lvwReport

The code i am using is below. I need 2 values to be populated fo
prfiles and Owner. I got struck. Please help me out

The Result should be like
Profiles Owner ---- Listview heading
Excel John ---- values


lTotalWidth = LlstProfiles.Width

Dim colX As ColumnHeader
Set colX = LlstProfiles.ColumnHeaders.Add()
colX.Text = "Profile"
colX.Width = lTotalWidth * 0.5

Set colX = LlstProfiles.ColumnHeaders.Add()
colX.Text = "Owner"
colX.Width = lTotalWidth * 0.5


LlstProfiles.nodes.add 1,,"Profile1"



Thanks
Venkatesh

--
Message posted from http://www.ExcelForum.com