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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INSERT month name in listview

Status
Not open for further replies.

sal21

Programmer
Apr 26, 2004
422
IT
Immagine1_qraxtg.jpg


In listview how to insert the name of month in second cell for each year?

Tks

TKS. TO THE ALL
resolved my self
 
Well, a short search gave me this place and with this code:

Code:
Option Explicit

Private Sub Form_Load()

Dim li As ListItem

With ListView1
    .View = lvwReport
    .ColumnHeaders.Add , , "One"
    .ColumnHeaders.Add , , "Two"
    
    Set li = .ListItems.Add(, , Date)
    li.SubItems(1) = Format(Date, "MMMM")

    Set li = .ListItems.Add(, , Date + 1)
    li.SubItems(1) = Format(Date + 1, "MMMM")
End With

End Sub

LisView_tsbz2k.png



---- Andy

There is a great need for a sarcasm font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top