Upcoming SlideShare
×

Xl Au Contoh Lookup Gambar

1,045 views

Published on

Contoh Lookup Gambar

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
1,045
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
11
0
Likes
0
Embeds 0
No embeds

No notes for slide

Xl Au Contoh Lookup Gambar

1. 1. Murid Picture 6 Private Sub Worksheet_CalculateMurid6 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 VBA yang digunakan End With End Sub 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 B2 Pakai validation data LIST dengan rumus =OFFSET(PicTable,,,,1)
2. 2. 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 SubSET(PicTable,,,,1)
3. 3. Name Picture Name Murid1 Picture 1 Murid2 Picture 2 Murid3 Picture 3 Murid4 Picture 4 Murid5 Picture 5 Murid6 Picture 6 Murid7 Picture 7 Murid8 Picture 8 Murid9 Picture 9 Murid10 Picture 10 Murid11 Picture 11 Murid12 Picture 12 Murid13 Picture 13 Murid14 Picture 14 Murid15 Picture 15 Murid16 Picture 16 Murid17 Picture 17 Murid18 Picture 18 Murid19 Picture 19 Murid20 Picture 20 Murid21 Picture 21 Murid22 Picture 22 Murid23 Picture 23 Murid24 Picture 24 Murid25 Picture 25 Murid26 Picture 26 Murid27 Picture 27 Murid28 Picture 28 Murid29 Picture 29 Murid30 Picture 30 Murid31 Picture 31 Murid32 Picture 32 Murid33 Picture 33 Murid34 Picture 34 Murid35 Picture 35 Murid36 Picture 36 Murid37 Picture 37 Murid38 Picture 38 Murid39 Picture 39 Murid40 Picture 40 Murid41 Picture 41 Murid42 Picture 42 Murid43 Picture 43 Murid44 Picture 44 Murid45 Picture 45 Murid46 Picture 46 Murid47 Picture 47 Murid48 Picture 48 Murid49 Picture 49 Murid50 Picture 50 Murid51 Picture 51 Murid52 Picture 52
4. 4. Murid53 Picture 53Murid54 Picture 54Murid55 Picture 55Murid56 Picture 56Murid57 Picture 57Murid58 Picture 58Murid59 Picture 59Murid60 Picture 60Murid61 Picture 61Murid62 Picture 62Murid63 Picture 63Murid64 Picture 64Murid65 Picture 65Murid66 Picture 66Murid67 Picture 67Murid68 Picture 68Murid69 Picture 69Murid70 Picture 70Murid71 Picture 71Murid72 Picture 72Murid73 Picture 73Murid74 Picture 74Murid75 Picture 75Murid76 Picture 76Murid77 Picture 77Murid78 Picture 78Murid79 Picture 79Murid80 Picture 80Murid81 Picture 81Murid82 Picture 82Murid83 Picture 83Murid84 Picture 84Murid85 Picture 85Murid86 Picture 86Murid87 Picture 87Murid88 Picture 88Murid89 Picture 89Murid90 Picture 90Murid91 Picture 91Murid92 Picture 92Murid93 Picture 93Murid94 Picture 94Murid95 Picture 95Murid96 Picture 96Murid97 Picture 97Murid98 Picture 98Murid99 Picture 99Murid100 Picture 100Murid101 Picture 101Murid102 Picture 102Murid103 Picture 103Murid104 Picture 104Murid105 Picture 105
5. 5. Murid106 Picture 106Murid107 Picture 107Murid108 Picture 108Murid109 Picture 109