Ana içeriğe atla

Resim URL'lerini Excel'de gerçek resimlere nasıl dönüştürebilirim?

doc url'den img 1'e

A sütununda bir resim URL adresleri listeniz varsa ve şimdi, URL'lerden ilgili resimleri indirmek ve gösterilen sol ekran görüntüsü gibi bitişik B sütunda görüntülemek istiyorsunuz. Excel'de, gerçek resimleri resim URL'lerinden nasıl hızlı ve kolay bir şekilde ayıklayabilirsiniz?

Görüntü URL'lerini VBA kodu ile gerçek görüntülere dönüştürün

Kutools for Excel ile görüntü URL'lerini gerçek görüntülere dönüştürün


Görüntü URL'lerini VBA kodu ile gerçek görüntülere dönüştürün

Aşağıdaki VBA kodu, gerçek görüntüleri resim URL adreslerinden hızlı bir şekilde çıkarmanıza yardımcı olabilir, lütfen şu şekilde yapın:

1. Basılı tutun ALT + F11 Microsoft Visual Basic for Applications penceresini açmak için tuşlar.

2. tıklayın Ekle > modülve aşağıdaki kodu Modül Penceresine yapıştırın.

VBA kodu: Görüntü URL'lerini gerçek görüntülere dönüştürün:

Sub URLPictureInsert()
Dim Pshp As Shape
Dim xRg As Range
Dim xCol As Long
On Error Resume Next
Application.ScreenUpdating = False
Set Rng = ActiveSheet.Range("A2:A5")
For Each cell In Rng
filenam = cell
ActiveSheet.Pictures.Insert(filenam).Select
Set Pshp = Selection.ShapeRange.Item(1)
If Pshp Is Nothing Then GoTo lab
xCol = cell.Column + 1
Set xRg = Cells(cell.Row, xCol)
With Pshp
.LockAspectRatio = msoFalse
If .Width > xRg.Width Then .Width = xRg.Width * 2 / 3
If .Height > xRg.Height Then .Height = xRg.Height * 2 / 3
.Top = xRg.Top + (xRg.Height - .Height) / 2
.Left = xRg.Left + (xRg.Width - .Width) / 2
End With
lab:
Set Pshp = Nothing
Range("A2").Select
Next
Application.ScreenUpdating = True
End Sub

Notlar: 

  • 1. Yukarıdaki kodda, A2: A5 görüntüleri çıkarmak istediğiniz URL adreslerini içeren hücre aralığıdır, hücre referanslarını ihtiyacınıza göre değiştirmelisiniz.
  • 2. Bu kodla, ayıklanan görüntülerin boyutunu ihtiyacınıza göre belirleyemezsiniz.
  • 3. Yukarıdaki kod yalnızca gerçek görüntüleri URL sütununuzun yanı sıra hücrelere çıkarabilir, görüntülerin çıktısını almak için hücre belirtemezsiniz.
  • 4. Kod hakkında bazı temel bilgilere sahip olmalısınız, herhangi bir karakter eksik veya yanlışsa, kod başarılı bir şekilde çalıştırılmayacaktır.

3. Daha sonra tuşuna basın. F5 Bu kodu çalıştırmak için anahtar ve ilgili tüm resimler resim URL'lerinden bitişik sütuna aynı anda çıkarılmıştır ve resimler belirli hücrelerinizin ortasına yerleştirilecektir, ekran görüntüsüne bakın:

doc url'den img 2'e


Kutools for Excel ile görüntü URL'lerini gerçek görüntülere dönüştürün

VBA kodunu bilmiyorsanız veya yukarıdaki kodun sınırlamasını gidermek istiyorsanız, Kutools for Excel's Yol (URL) için Resim Ekle özelliği, aşağıda gösterilen ekran görüntüsü gibi bilgisayarınızdaki URL adreslerine veya belirli yola dayalı olarak karşılık gelen resimleri hızlı bir şekilde eklemenize yardımcı olabilir. Kutools for Excel'i indirmek için tıklayın!

not:Bunu uygulamak için Yol (URL) için Resim Ekleöncelikle Kutools for Excelve ardından özelliği hızlı ve kolay bir şekilde uygulayın.

Kurduktan sonra Kutools for Excellütfen şunu yapın:

1. tıklayın Kutools > Ekle > Yol (URL) için Resim Ekle, açılan iletişim kutusunda lütfen aşağıdaki işlemleri ayarlayın, ekran görüntülerine bakın:

doc url'den img 3'e doc url'den img 4'e

2. Daha sonra, Ok düğmesi ve resimler URL'lerden çıkarılacaktır, ekran görüntüsüne bakın:

doc url'den img 1'e

Kutools for Excel'i şimdi ücretsiz olarak indirip deneme için tıklayın!

En İyi Ofis Üretkenlik Araçları

🤖 Kutools AI Yardımcısı: Aşağıdakilere dayalı olarak veri analizinde devrim yaratın: Akıllı Yürütme   |  Kodunu oluşturun  |  Özel Formüller Oluşturun  |  Verileri Analiz Edin ve Grafikler Oluşturun  |  Kutools İşlevlerini Çağır...
Popüler Özellikler: Yinelenenleri Bul, Vurgula veya Tanımla   |  Boş Satırları Sil   |  Veri Kaybı Olmadan Sütunları veya Hücreleri Birleştirin   |   Formülsüz Tur ...
Süper Arama: Çoklu Ölçütlü VLookup    Çoklu Değer VLookup  |   Birden Çok Sayfada VLookup   |   Bulanık Arama ....
Gelişmiş Açılır Liste: Hızla Açılır Liste Oluşturun   |  Bağımlı Açılır Liste   |  Çoklu Seçim Açılır Liste ....
Sütun Yöneticisi: Belirli Sayıda Sütun Ekleme  |  Sütunları Taşı  |  Gizli Sütunların Görünürlük Durumunu Değiştir  |  Aralıkları ve Sütunları Karşılaştırın ...
Öne Çıkan Özellikler: Izgara Odağı   |  Tasarım görünümü   |   Büyük Formül Çubuğu    Çalışma Kitabı ve Sayfa Yöneticisi   |  Kaynak Kütüphanesi (Otomatik metin)   |  Tarih Seçici   |  Çalışma Sayfalarını Birleştirin   |  Hücreleri Şifrele/Şifresini Çöz    E-postaları Listeye Göre Gönder   |  Süper Filtre   |   Özel Filtre (kalın/italik/üstü çizili filtre...) ...
En İyi 15 Araç Seti12 Metin Tools (Metin ekle, Karakterleri Kaldır, ...)   |   50+ Grafik Türleri (Gantt şeması, ...)   |   40+ Pratik Formüller (Yaşı doğum gününe göre hesapla, ...)   |   19 sokma Tools (QR Kodunu Girin, Yoldan Resim Ekle, ...)   |   12 Dönüştürme Tools (Sayılardan Kelimelere, Para Birimi Dönüştürme, ...)   |   7 Birleştir ve Böl Tools (Gelişmiş Kombine Satırları, Bölünmüş hücreler, ...)   |   ... ve dahası

Kutools for Excel ile Excel Becerilerinizi Güçlendirin ve Daha Önce Hiç Olmadığı Gibi Verimliliği Deneyimleyin. Kutools for Excel, Üretkenliği Artırmak ve Zamandan Tasarruf Etmek için 300'den Fazla Gelişmiş Özellik Sunar.  En Çok İhtiyacınız Olan Özelliği Almak İçin Buraya Tıklayın...

Açıklama


Office Tab, Office'e Sekmeli Arayüz Getirir ve İşinizi Çok Daha Kolay Hale Getirir

  • Word, Excel, PowerPoint'te sekmeli düzenlemeyi ve okumayı etkinleştirin, Publisher, Access, Visio ve Project.
  • Yeni pencereler yerine aynı pencerenin yeni sekmelerinde birden çok belge açın ve oluşturun.
  • Üretkenliğinizi% 50 artırır ve her gün sizin için yüzlerce fare tıklamasını azaltır!
Comments (61)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
can anyone help to extract mutiple links folllowed by comma  in one cell 
This comment was minimized by the moderator on the site
I own Kutools and I cannot seem to get this function to work properly. After I run it based on the examples above I get a message that says "1 picture(s) failed to be inserted"
Its not an htpps address. And the link the works fine when clicking from excel.
Please help
This comment was minimized by the moderator on the site
I have the same problem now. It worked very well yesterday, but today it's just not working :(
This comment was minimized by the moderator on the site
If I want the image to resize with the cell, is it as simple as changing this line to "msoTrue"?.LockAspectRatio = msoFalse


This comment was minimized by the moderator on the site
When I renew it takes the same picture again
So it adds images on top of each other
how can i prevent this?
Do not add the added picture again ?how can I do?
edit: also pictures are not loading when we open later?
This comment was minimized by the moderator on the site
When I renew it takes the same picture againSo it adds images on top of each other
how can i prevent this?
Do not add the added picture again ?how can I do?
This comment was minimized by the moderator on the site
thank you for VBA code, i able to get the url images as picture
but, after file closed, and then i opened it again, picture missing.
how to solve this problem?
This comment was minimized by the moderator on the site
Hello, Robby,After copying and pasting the code, when you close the workbook, you should save the file as Excel Macro-Enabled Workbook format for saving the code.When reopen the workbook, you should click the Enable Content button from the yellow ribbon at the top of the workbook.Please try, thank you!
This comment was minimized by the moderator on the site
thank you for fast response
I have save as Excel Enable Workbook and also Enable Content, and Picture will be shown up if i connected to internet, but when offline mode, the picture will be missing, Excel message : Picture can't be display
is there any solution so the picture will still shown up even though i am in offline mode (no internet available)
This comment was minimized by the moderator on the site
Hi, Robby, In this case, if you are in offline mode, I recommend you to use the Insert Pictures form Path(URL) feature of Kutools for Excel, you can download the Kutools and use it 30 days for free trail. After inserting the pictures, the pictures will be saved into the workbook.Please try.
This comment was minimized by the moderator on the site
What image types does this work with? I have mostly svg files and those are not working, but png and jpeg are fine.
This comment was minimized by the moderator on the site
Hello, travwoody,Yes, as you said, the code does not work for the svg files.Or can you insert a picture url here? We can test your image url for modifying the code.Thank you!
This comment was minimized by the moderator on the site
Why this line is not working for me?
Set Pshp = Selection.ShapeRange.Item(1)
Pshp object is becoming nothing, even though I have a valid image URL
This comment was minimized by the moderator on the site
I will also specify that I am writing about the VBA script
This comment was minimized by the moderator on the site
This code works great. Thank you!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations