PDA

View Full Version : [SOLVED:] Listview



gibbo1715
09-15-2005, 02:29 PM
i have put a listview onto my userform but i cannot figure out how to set or change the headings, can anyone assist please

Thanks

Gibbo

mdmackillop
09-15-2005, 02:32 PM
Hi Gibbo,
I'm not clear what you mean by ListView. Can you post a copy of your form?
Regards
Malcolm

gibbo1715
09-15-2005, 02:42 PM
Thanks for looking Malcolm,

I ve attached my form, Listview is a component similar to listbox, only i prefer it if can figure out my headings problem

Cheers

Gibbo

mdmackillop
09-15-2005, 02:49 PM
I'm getting an error when I try to import it.

Line 8: Property OleObjectBlob in UserForm2 had an invalid file reference.

gibbo1715
09-15-2005, 03:17 PM
Cant seem to upload another example, its on the toolbox additional items in the vba under Microsoft listview control v6.0 if that helps

Thanks

Gibbo

gibbo1715
09-16-2005, 01:01 AM
Anyone?

This is driving me nuts!!!!

sheeeng
09-16-2005, 01:49 AM
Hi, Can you upload your sample file?

gibbo1715
09-16-2005, 01:55 AM
Looks like this does the job for me, Thanks to Ivan for this

With ListView1
.View = lvwReport
.MultiSelect = True
.ColumnHeaders.Add , , "Name"
.ColumnHeaders.Add , , "Type"
.ColumnHeaders.Add , , "Modified"
.ColumnHeaders.Add , , "Size (Bytes)"
.ColumnHeaders.Add , , "Ratio"
.ColumnHeaders.Add , , "Packed (Bytes)"
.ColumnHeaders.Add , , "CRC"
.ColumnHeaders.Add , , "Path"
End With

mdmackillop
09-16-2005, 05:16 AM
Glad its solved Gibbo. I've never used ListView, so I'd be interested in seing a finished article. Maybe you could create a KB entry out of this and any other of these additional form tools that you use.
Regards
Malcolm

gibbo1715
09-16-2005, 09:21 AM
When i have it working properly, i ll submit something for you to look at

Gibbo