Deneyiniz ... Private Sub CommandButton2_Click()
Dim Picture As Object
For Each Picture In ActiveSheet.Shapes
If TypeName(ActiveSheet.Shapes(Picture.Name).OLEFormat.Object) = Me.Pictures Then
Picture.Delete
End If
Next Picture
End Sub
Merhaba Arkadaşım,
Deneyiniz ... Sub Resimleri_Sil()
Dim Picture As Object
For Each Picture In ActiveSheet.Shapes
If TypeName(ActiveSheet.Shapes(Picture.Name).OLEFormat.Object) = Me.Pictures Then
Picture.Delete
End If
Next Picture
End...
...ürün kodu yazdığımda resimi getirebilir miyimiz
yardımlarınızı bekliyorum
saygılarımla
Private Sub CommandButton1_Click()
Dim res As Picture
Dim x As Long
Dim ps As Long
ps = Range("A20000").End(xlUp).Row
For x = 2 To ps
On Error Resume Next
Range("C" & x).Select
Set res =...
...değişire bilimiyim.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
On Error Resume Next
Dim resim As Picture, alan As Range
'Set Alan = Range("b4:b6")
For Each resim In ActiveSheet.Pictures
If Not Intersect(resim.TopLeftCell, alan) Is Nothing Then...
...Dim c2Genislik As Double
Dim c2Yukseklik As Double
Dim resimSol As Double
Dim resimUst As Double
Dim resim As Picture
Dim resimDosyasi As String
resimDosyasi = ResimDosyasiSec
If resimDosyasi = "" Then
MsgBox "Resim Dosyasi Seçilmedi...."...
...Worksheet
Dim c2Genislik As Double
Dim c2Yukseklik As Double
Dim resimSol As Double
Dim resimUst As Double
Dim resim As Picture
' Çalışma sayfasını belirleyin
Set ws = ThisWorkbook.Sheets("Sayfa1") ' Sayfa adınızı uygun şekilde değiştirin
' C2 hücresinin...
Kodlara bir IF sorgusu ekledim
Sub InsertPic()
Dim pic As String, myPicture As Picture, rng As Range, cl As Range
Set rng = Range("K2:K15")
On Error Resume Next
For Each cl In rng
If Not IsEmpty(cl) Then 'ilave edildi
pic = cl.Value
Set myPicture =...
...FilePathJPG = FileRoot & ".jpg"
'Save a BMP
SaveClip2Bit FilePathBMP
'Convert to JPG
WIA_ConvertImage FilePathBMP, FilePathJPG, JPEG, 85
'Delete the BMP
Kill (FilePathBMP)
Load_Picture FileRoot
Exit Sub
reportErr:
MsgBox "No image in Clipboard"
Resume Next
End Sub
...için aşağıdaki kodu oluşturdum fakat hata veriyor,
Nasıl bir kod düzenlenebilir?
desteğiniz için şimdiden teşekkürler,
iyi akşamlar.
Private Sub CommandButton1_Click()
'''Worksheets("Sayfa1").Range("D3:I12").CopyPicture xlScreen, xlBitmap
Me.Image1.Picture = PastePicture(xlBitmap)
End Sub
...Sub CommandButton2_Click()
Dim img As String
img = Application.GetOpenFilename(filefilter:="Jpeg images,*.jpg", Title:="Please select an image")
If Dir(img) <> "" Then
Me.txt_Image_URL.Value = img
Me.Image1.Picture = LoadPicture(img)
End If
Yardımcı olabilirseniz sevinirim.
...True Then
eskizom = ActiveWindow.Zoom
ActiveWindow.Zoom = 100
Set Adres = Range(s1.Cells(1, Target.Column), s1.Cells(4, Target.Column))
Dim Picture As Object
For Each Picture In s1.Shapes
If TypeName(s1.Shapes(Picture.Name).OLEFormat.Object) = "Picture" Then
Set yer1 =...
...As Shape
'Dosya seçme iletişim kutusunu aç
picName = Application.GetOpenFilename("JPG,*.jpg,PNG,*.png,GIF,*.gif", , "Select Picture")
'Eğer bir dosya seçilmediyse, makro işlem yapmaz
If picName = False Then Exit Sub
'Seçilen dosyanIn adInI ve yolu al...
...As Double
'Dosya seçme iletişim kutusunu aç
picName = Application.GetOpenFilename("JPG,*.jpg,PNG,*.png,GIF,*.gif", , "Select Picture")
'Eğer bir dosya seçilmediyse, makro işlem yapmaz
If picName = False Then Exit Sub
'Seçilen dosyanIn adInI ve yolu al...
..."Resim Dosyası", "*.jpg?", 1
File.Show
If File.SelectedItems.Count = 1 Then
DosyaY = DialogBox.SelectedItems(1)
End If
Image1.Picture = LoadPicture(DosyaY)
End Sub
ama
File.Filters.Add "Resim Dosyası", "*.jpg?", 1
bu satırda hata veriyor.
Yardımlarınız için şimdiden teşekkür ederim...
...yaparım.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim filePath As String
Dim img As Picture
If Target.Address = "$C$1" Then
Cancel = True
filePath = Application.GetOpenFilename("Resim Dosyaları...
...için Resim Seçiniz")
If fNameAndPath = False Then Exit Sub
Set img = ActiveSheet.Shapes.AddPicture(Filename:=fNameAndPath, _
LinkToFile:=False, SaveWithDocument:=True, _
Left:=1, Top:=1, Width:=-1...
...Declare PtrSafe Function FreeLibrary Lib "kernel32" (ByVal hLibModule As LongPtr) As Long
Private Declare PtrSafe Function OleCreatePictureIndirectAut Lib "oleAut32.dll" Alias "OleCreatePictureIndirect" _
(PicDesc As uPicDesc, RefIID As GUID, ByVal fPictureOwnsHandle As Long...
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.