- Katılım
- 5 Ağustos 2016
- Mesajlar
- 6
- Excel Vers. ve Dili
- Office 2013
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Merhaba.
Ekli belgede istediğinize yakın birşeyler yaptım.
Belgeyi açtığınızda makroları etkinleştirin ve sayfadaki açıklamayı okuyun.
Resimlerin bulunduğu dizine ilişkin kod satırı:
Klasor = "C:\resim" & "\" & Cells(sat + 1, sut).Value & ".jpg"
Gerekirse, resimleri boyutlandırma durumu için forumda arama yapın,
halledemezseniz yeni konu açarak veya bu konu sayfasında tekrar destek isteyin.
.
[FONT="Arial Narrow"]With Cells(sat, sut)
................gen = [COLOR="Red"]100[/COLOR]: yuk = [COLOR="red"]172[/COLOR]
End With[/FONT]
[FONT="Arial Narrow"]With Cells(sat, sut)
................gen = [COLOR="Red"]Cells(sat, sut).Width * 0.92[/COLOR]: yuk = [COLOR="red"]Cells(sat, sut).Height * 0.92[/COLOR]
End With[/FONT]
[FONT="Arial Narrow"][B][COLOR="Blue"]Sub KATALOG()[/COLOR][/B]
Dim resim As Object
ActiveSheet.Calculate
Application.ScreenUpdating = False: Application.Calculation = xlCalculationManual
For nesne = ActiveSheet.Shapes.Count To 1 Step -1
If ActiveSheet.Shapes.Range(Array(nesne)).Name = "Değer Değiştirici 1" Then GoTo 20
With ActiveSheet.Shapes.Range(Array(nesne))
.Select: .Delete
End With
20: Next
If ActiveSheet.Cells(3, "K") = 0 Then GoTo 10
For sat = 2 To 11 Step 3
For sut = 2 To 8 Step 2
Klasor = "C:\resim" & "\" & Cells(sat + 1, sut).Value & ".jpg"
If Dir(Klasor) = "" Then GoTo 50
Set res = ActiveSheet.Pictures.Insert(Klasor)
With res
.ShapeRange.LockAspectRatio = msoFalse: .Placement = xlMoveAndSize
.Top = Cells(sat, sut).Top + 2: .Left = Cells(sat, sut).Left + 2
.Width = Cells(sat, sut).Width * 0.96: .Height = Cells(sat, sut).Height * 0.98
End With
50: Set res = Nothing
Next
Next
10: [K2].Activate
Application.ScreenUpdating = True: Application.Calculation = xlCalculationAutomatic
[B][COLOR="blue"]End Sub[/COLOR][/B][/FONT]