Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Pahelp po about VBA EXCel

&watag

Amateur
Advanced Member
Messages
115
Reaction score
0
Points
26

Attachments

  • sample 1.jpg
    sample 1.jpg
    52.5 KB · Views: 23
  • sample 2.jpg
    sample 2.jpg
    64 KB · Views: 41
  • sample 3.jpg
    sample 3.jpg
    118.2 KB · Views: 14
Last edited:
Remove mo yung assignment nung sa Msgbox tapos
Use StrComp when comparing string. E.g. If StrComp(string,string,vbTextCompare) = 0
 
Last edited:
Thank you sir, View attachment 317205 sir pwede dagdagan tanung ko. problim ko kase jan pag nilagyan ko ng fill up ung 1-6 dapt ung date ma copy sa excel na 1-6 din kaso pag sa 1 lang nilagyan ko ung date 1-6 parin. panu ba magandang code jan sir. thanks ng marami..
 

Attachments

  • sample 4.jpg
    sample 4.jpg
    187.4 KB · Views: 16
  • sample 5.png
    sample 5.png
    42.3 KB · Views: 10
Kunin mo kung ilang row yung may laman ta's condition lang dun sa pagpiprint.
 
Salamat sir
 
Private Sub CmdSearch_Click()

Dim emptyrow As Long

Sheet1.Activate

'emptyrow = WorksheetFunction.Count(Range("G:G"))

emptyrow = Cells(Columns.Count, "G:G").End(xlUp).Row



If Txts.Value = "" Then
MsgBox ("NO Record Found")
Else

MsgBox ("Record Found")

DTPicker1.Value = Cells(emptyrow, 2).Value
d1.Value = Cells(emptyrow, 3).Value
d2.Value = Cells(emptyrow, 4).Value
d3.Value = Cells(emptyrow, 5).Value
d4.Value = Cells(emptyrow, 6).Value
Txts.Value = Cells(emptyrow, 7).Value
End If


End Sub



sir pa help nman kung panu tamang code sa search thanks
 
Back
Top Bottom