...Ayhan ustadımın eskıden paylastıgı bır kod ısımı gördü tesekkur ederım
Sub RESIM_SIL()
Dim RESIM As Shape
For Each RESIM In ActiveSheet.Shapes
If InStr(1, RESIM.Name, "Picture") > 0 Then RESIM.Delete
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
...ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const VK_SNAPSHOT = &H2C
Sub Selected_File()
Dim DialogBox As FileDialog, My_Picture As Picture, Alan As Range
Set DialogBox = Application.FileDialog(msoFileDialogOpen)
DialogBox.AllowMultiSelect = False...
Kullandığınız sayfa kodunu aşağıdaki ile değiştirip deneyiniz.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Resim As Picture, Alan As Range, Veri As Range
Set Alan = Intersect(Target.Offset(, 1), Range("B:B"))
For Each Resim In ActiveSheet.Pictures
If Not...
...PicW = Range("C" & i).Width '???????????
PicH = Range("C" & i).Height '???????????
Set MyPic = ActiveSheet.Shapes.AddPicture(PicFile, True, True, PicLeft, PicTop, PicW, PicH) '???????????
ResumeFor:
Next
End Sub
Sub resimsil()
Dim Resim As Picture, Alan As Range...
...sayfasında resimler olsun ve resim sayfasında çalıştırın
AA. AB. AC. AD hücrelerindeki sonucu buraya yazın bir bakalım.
Sub deneme()
Dim Picture As Object
For Each Picture In ActiveSheet.Shapes
sat = sat + 1
Cells(sat, "AA") = Picture.Type
Cells(sat, "AB") = Picture.Name
Cells(sat, "AC") =...
...böyle olabilir
sat1 = 11
sat2 = 52
sut1 = 3
sut2 = 22
For Each Pic In sht.Shapes
If TypeName(sht.Shapes(Pic.Name).OLEFormat.Object) = "Picture" Then
If Pic.TopLeftCell.Row >= sat1 And Pic.BottomRightCell.Row <= sat2 Then
If Pic.TopLeftCell.Column >= sut1 And Pic.BottomRightCell.Column <=...
..."Empty" Then
For BakSyf = 0 To UBound(Sayfalar)
For Bak = 0 To UBound(Foto)
Worksheets(Sayfalar(BakSyf)).Pictures(Foto(Bak)).Delete
Next
Next
End If
End Sub
Sub PicturesInsertMultiMerge2()
Dim Bak As Integer
Dim BakSyf As...
...Dim File_Path As String, My_File As String, Old_Name As String
Dim Rar_File_Name As String, Rar_Extract, Picture_File As Object
Dim FSO As Object, Picture_Count As Long, Process_Time As Double
Process_Time = Timer
Set FSO =...
...= False
Application.EnableEvents = False
Application.DisplayAlerts = False
Dim Fname As String
On Error Resume Next
Image1.Picture = LoadPicture("")
Sheets("ABC").Select
ActiveSheet.Shapes([X!a1]).Select
Selection.CopyPicture
Fname = Environ("Temp") & "\sil.jpeg"
Set grafik =...
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.