Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BACKGOUND CHANGE LISTITEM IN LISTVIEW

Status
Not open for further replies.

2009luca

Programmer
Jul 27, 2013
222
IT
Im working with vba for ecxel.
in a userform have a listview1.
possible to colorize the background cell in row 2 colomun 4 in blue?

i know the way to change color in a cell font, but not to change the background color of a cell.
Tks.
 
Have you checked the ListView object properties? YES

 
No. You can change the forecolor in only.
 
found this...

Link

but i cannot arrange for a listview in vba userform!!!!

 
Sure, if you are an expert in windows API have at it. Not the easiest thing to work with, IMO. Those who are good at it, can do some pretty cool things.
 
The technique outlined in that link is called OwnerDraw (and knowing that you may be able to Google for better, more comprehensive examples). It is a pretty powerful way of modifying how many of the built-in controls are displayed - but, as MajP hinst, it is not for the fainthearted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top