Deneyiniz.
Option Explicit
Public Sub Fit_All_Selected_Pictures()
Dim pic As Picture
Dim PicWtoHRatio As Single
Dim CellWtoHRatio As Single
Select Case TypeName(Selection)
Case "DrawingObjects"
For Each pic In Selection
PicWtoHRatio =...
...Union([M5], [M13])) Is Nothing Then Exit Sub
On Error Resume Next
ActiveSheet.DrawingObjects.Delete
Dim resimyolu As String
Dim resim As Picture
resimyolu = ActiveWorkbook.Path & "\" & Sheets(2).[M5] & ".jpg"
Set resim = ActiveSheet.Pictures.Insert(resimyolu)
With Range("V2")
resim.Top = .Top...
...<> "" Then
If ActiveSheet.DrawingObjects.Count > 0 Then ActiveSheet.DrawingObjects.Delete
Dim resimyolu$, resim As Picture
resimyolu = ActiveWorkbook.Path & "\" & [M5] & ".jpg"
If Dir(resimyolu) <> "" Then
Set resim =...
...sabitlemesi bunu ortaya sabitleyecek şekilde revize etmem gerekiyor yardımcı olur musunuz?
Teşekkürler şimdiden.
Public Sub Fit_All_Selected_Pictures()
Dim pic As Picture
Dim PicWtoHRatio As Single
Dim CellWtoHRatio As Single
Select Case TypeName(Selection)...
...Intersect(Target, [M5]) Is Nothing Then Exit Sub
On Error Resume Next
ActiveSheet.DrawingObjects.Delete
Dim resimyolu As String
Dim resim As Picture
resimyolu = ActiveWorkbook.Path & "\" & Sheets(2).[M5] & ".jpg"
Set resim = ActiveSheet.Pictures.Insert(resimyolu)
With Range("V2")
resim.Top =...
....TextEffect.FontName = "Arial Rounded MT Bold"
.Height = 50
End With
sh.UsedRange.CopyPicture xlScreen, xlPicture
my_slide.Shapes.Paste
''''''' Resize and reposition the picture
With my_slide.Shapes(2)...
Tevfik Bey,
Bu Ekran Geldi.
run-time error "438":
object doesn't support this property or method
vba ekranında:
If TypeName(ActiveSheet.Shapes(Picture.Name).OLEFormat.Object) = Me.Pictures Then
Sarı renk oldu. hata verdi.
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.
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.