Murid Picture 6 Murid6 VBA yang digunakan B2 Pakai validation data LIST dengan rumus =OFFSE FALSE) urutan picture mulai dari no 1 sampai dengan 109 yang sudah dimasukkan murid sampai dengan murid ke 8. kalau mau merubah tinggal kliik kanan change picture Priva D M W E End S
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Murid Picture 6Murid6
VBA yang digunakan
B2 Pakai validation data LIST dengan rumus =OFFSET(PicTable,,,,1)
Kita menggunakan Vlookup untuk di F1 dengan rumus =VLOOKUP(A2, PicTable, 2, FALSE)
Untuk memasukan foto sesuai dengan urutan picture mulai dari no 1 sampai dengan 109
yang sudah dimasukkan murid sampai dengan murid ke 8. kalau mau merubah tinggal kliik kanan change picture
Private Sub Worksheet_Calculate() Dim oPic As Picture Me.Pictures.Visible = False With Range("F1") For Each oPic In Me.Pictures If oPic.Name = .Text Then oPic.Visible = True oPic.Top = .Top oPic.Left = .Left Exit For End If Next oPic End With End Sub
F10
Private Sub Worksheet_Calculate() Dim oPic As Picture Me.Pictures.Visible = False With Range("F1") For Each oPic In Me.Pictures If oPic.Name = .Text Then oPic.Visible = True oPic.Top = .Top oPic.Left = .Left Exit For End If Next oPic End With End Sub
B2 Pakai validation data LIST dengan rumus =OFFSET(PicTable,,,,1)
Private Sub Worksheet_Calculate() Dim oPic As Picture Me.Pictures.Visible = False With Range("F1") For Each oPic In Me.Pictures If oPic.Name = .Text Then oPic.Visible = True oPic.Top = .Top oPic.Left = .Left Exit For End If Next oPic End With End Sub