• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Makro ile eklenmiş resim başka pc'de görünmüyor

Katılım
18 Nisan 2014
Mesajlar
12
Excel Vers. ve Dili
Office 2010 Türkçe
Merhabalar arkadaşlar benim sorum başlıktanda anlasılacağı gibi makro ile excel dosyama resim ekliyorum fakat dosyayı baska bir bilgisayara gönderdiğimde resimler görünmüyor.

benim resim eklemek için kullandığım makro kodu :

Sub InsertPicture()
Dim sPicture As String, pic As Picture

sPicture = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif), *.gif; *.jpg; *.bmp; *.tif", _
, "Select Picture to Import")

If sPicture = "False" Then Exit Sub

Set pic = ActiveSheet.Pictures.Insert(sPicture)
With pic
.ShapeRange.LockAspectRatio = msoFalse
.Height = ActiveCell.Height
.Width = ActiveCell.Width
.Top = ActiveCell.Top
.Left = ActiveCell.Left
.Placement = xlMoveAndSize
End With

Set pic = Nothing

End Sub


Resimlerin başka bilgisayarlarda görünmesi için ne yapabiliriz. Şimdiden teşekkürler
 
Merhabalar arkadaşlar benim sorum başlıktanda anlasılacağı gibi makro ile excel dosyama resim ekliyorum fakat dosyayı baska bir bilgisayara gönderdiğimde resimler görünmüyor.

benim resim eklemek için kullandığım makro kodu :

Sub InsertPicture()
Dim sPicture As String, pic As Picture

sPicture = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif), *.gif; *.jpg; *.bmp; *.tif", _
, "Select Picture to Import")

If sPicture = "False" Then Exit Sub

Set pic = ActiveSheet.Pictures.Insert(sPicture)
With pic
.ShapeRange.LockAspectRatio = msoFalse
.Height = ActiveCell.Height
.Width = ActiveCell.Width
.Top = ActiveCell.Top
.Left = ActiveCell.Left
.Placement = xlMoveAndSize
End With

Set pic = Nothing

End Sub


Resimlerin başka bilgisayarlarda görünmesi için ne yapabiliriz. Şimdiden teşekkürler

Profilinizde excelin hangi versiyonunu kullandığınız yazmıyor.
 
Office 2010 Kullanıyorum Halit Bey.

Alternatif olsun

Kod:
Sub InsertPicture()
Dim sPicture As String, pic As Picture

sPicture = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif), *.gif; *.jpg; *.bmp; *.tif", _
, "Select Picture to Import")

If sPicture = "False" Then Exit Sub
ActiveSheet.Shapes.AddPicture sPicture, msoFalse, msoCTrue, ActiveCell.Left + 2, ActiveCell.Top + 2, ActiveCell.Width - 4, ActiveCell.Height - 4
Set pic = Nothing

End Sub
 
Geri
Üst