- Thread Starter
- #281
Re: MS excel we give solutions. formula, codes and tutorials
lagyan mo nalang ng label yung taas ng listbox mo bro. mas maganda tignan yun.
- - - Updated - - -
tambay ka lang dito bro.
Thanks sir kirby! it works. May additional question po ako, paano ko po mapapalabas sa Listbox yung Columns A, C & E including the header that still based on 'WAITING FOR APPROVAL' status, bale hindi lng Column A yung maddisplay sa Listbox, Columns A, C & E na po including the header na din po.
Code:
Private Sub CommandButton1_Click()
lastrow = Sheets("sheet1").Cells(Cells.Rows.Count, 2).End(xlUp).Row
x = 0
For a = 2 To lastrow
If Cells(a, 6) = "WAITING FOR APPROVAL" Then
With ListBox1
.AddItem
.List(x, 0) = Cells(a, 1)
.List(x, 2) = Cells(a, 3)
.List(x, 4) = Cells(a, 5)
x = x + 1
End With
End If
Next
End Sub
lagyan mo nalang ng label yung taas ng listbox mo bro. mas maganda tignan yun.
- - - Updated - - -
i really like this thread mukhang mapapadalas ako dito since i'm going to start working na , using Excel and Access.
I'm looking forward discussing some topics regarding this , Ts and TeamMates hello there
tambay ka lang dito bro.