मुख्य सामग्री पर जाएं

Excel में छवि URL को वास्तविक छवियों में कैसे परिवर्तित करें?

लेखक: ज़ियाओयांग अंतिम संशोधित: 2023-04-11
आईएमजी 1 के लिए दस्तावेज़ यूआरएल

यदि आपके पास कॉलम ए में छवि यूआरएल पतों की एक सूची है, और अब, आप यूआरएल से संबंधित चित्रों को डाउनलोड करना चाहते हैं और उन्हें बाएं स्क्रीनशॉट में दिखाए गए अनुसार आसन्न कॉलम बी में प्रदर्शित करना चाहते हैं। एक्सेल में, आप छवि यूआरएल से वास्तविक चित्र कैसे जल्दी और आसानी से निकाल सकते हैं?

वीबीए कोड के साथ छवि यूआरएल को वास्तविक छवियों में बदलें

एक्सेल के लिए कुटूल के साथ छवि यूआरएल को वास्तविक छवियों में बदलें


वीबीए कोड के साथ छवि यूआरएल को वास्तविक छवियों में बदलें

निम्नलिखित वीबीए कोड आपको छवि यूआरएल पते से वास्तविक छवियों को तुरंत निकालने में मदद कर सकता है, कृपया ऐसा करें:

1. दबाए रखें ALT + F11 एप्लिकेशन विंडो के लिए Microsoft Visual Basic खोलने के लिए कुंजियाँ।

2। क्लिक करें सम्मिलित करें > मॉड्यूल, और मॉड्यूल विंडो में निम्नलिखित कोड पेस्ट करें।

वीबीए कोड: छवि यूआरएल को वास्तविक छवियों में बदलें:

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

टिप्पणियाँ: 

  • 1. उपरोक्त कोड में, A2: A5 यह उन कक्षों की श्रेणी है जिनमें वे URL पते शामिल हैं जिन्हें आप छवियां निकालना चाहते हैं, आपको अपनी आवश्यकता के अनुसार कक्ष संदर्भों को बदलना चाहिए।
  • 2. इस कोड के साथ, आप अपनी आवश्यकता के अनुसार निकाली गई छवियों का आकार निर्दिष्ट नहीं कर सकते।
  • 3. उपरोक्त कोड केवल आपके यूआरएल कॉलम के अलावा वास्तविक छवियों को कोशिकाओं में निकाल सकता है, आप छवियों को आउटपुट करने के लिए सेल निर्दिष्ट नहीं कर सकते हैं।
  • 4. आपको कोड का कुछ बुनियादी ज्ञान होना चाहिए, यदि कोई अक्षर छूट गया या गलत है, तो कोड सफलतापूर्वक निष्पादित नहीं होगा।

3। फिर दबायें F5 इस कोड को चलाने के लिए कुंजी, और सभी संबंधित चित्रों को छवि यूआरएल से आसन्न कॉलम में एक साथ निकाला गया है, और छवियों को आपके विशिष्ट कक्षों के केंद्र में रखा जाएगा, स्क्रीनशॉट देखें:

आईएमजी 2 के लिए दस्तावेज़ यूआरएल


एक्सेल के लिए कुटूल के साथ छवि यूआरएल को वास्तविक छवियों में बदलें

यदि आप वीबीए कोड से परिचित नहीं हैं या उपरोक्त कोड की सीमा का समाधान करना चाहते हैं, एक्सेल के लिए कुटूल's पथ (यूआरएल) के रूप में चित्र सम्मिलित करें यह सुविधा आपके कंप्यूटर में यूआरएल पते या विशिष्ट पथ के आधार पर सीपीआररेस्पॉन्डिंग छवियों को तुरंत डालने में आपकी सहायता कर सकती है जैसा कि नीचे स्क्रीनशॉट में दिखाया गया है। एक्सेल के लिए कुटूल डाउनलोड करने के लिए क्लिक करें!

नोट:इसे लागू करने के लिए पथ (यूआरएल) के रूप में चित्र सम्मिलित करें, सबसे पहले, आपको डाउनलोड करना चाहिए एक्सेल के लिए कुटूल, और फिर सुविधा को जल्दी और आसानी से लागू करें।

स्थापित करने के बाद एक्सेल के लिए कुटूल, कृपया ऐसा करें:

1। क्लिक करें कुटूल > सम्मिलित करें > पथ (यूआरएल) के रूप में चित्र सम्मिलित करें, पॉप आउट डायलॉग बॉक्स में, कृपया निम्नलिखित ऑपरेशन सेट करें, स्क्रीनशॉट देखें:

आईएमजी 3 के लिए दस्तावेज़ यूआरएल आईएमजी 4 के लिए दस्तावेज़ यूआरएल

2। तब दबायें Ok बटन, और चित्र यूआरएल से निकाले जाएंगे, स्क्रीनशॉट देखें:

आईएमजी 1 के लिए दस्तावेज़ यूआरएल

एक्सेल के लिए कुटूल को अभी डाउनलोड करने और उसका निःशुल्क परीक्षण करने के लिए क्लिक करें!

सर्वोत्तम कार्यालय उत्पादकता उपकरण

🤖 कुटूल्स एआई सहयोगी: निम्न के आधार पर डेटा विश्लेषण में क्रांति लाएं: बुद्धिमान निष्पादन   |  कोड जनरेट करें  |  कस्टम फ़ॉर्मूले बनाएं  |  डेटा का विश्लेषण करें और चार्ट बनाएं  |  कुटूल फ़ंक्शंस का आह्वान करें...
लोकप्रिय सुविधाएँ: डुप्लिकेट ढूंढें, हाइलाइट करें या पहचानें   |  रिक्त पंक्तियाँ हटाएँ   |  डेटा खोए बिना कॉलम या सेल को संयोजित करें   |   फॉर्मूला के बिना गोल ...
सुपर लुकअप: एकाधिक मानदंड VLookup    मल्टीपल वैल्यू वीलुकअप  |   अनेक शीटों में VLookup   |   फजी लुकअप ....
उन्नत ड्रॉप-डाउन सूची: शीघ्रता से ड्रॉप डाउन सूची बनाएं   |  आश्रित ड्रॉप डाउन सूची   |  बहु-चयन ड्रॉप डाउन सूची ....
स्तम्भ प्रबंधक: कॉलमों की एक विशिष्ट संख्या जोड़ें  |  कॉलम ले जाएँ  |  छिपे हुए कॉलम की दृश्यता स्थिति टॉगल करें  |  रेंज और कॉलम की तुलना करें ...
फीचर्ड फीचर्स: ग्रिड फोकस   |  डिजाइन देखें   |   बड़ा फॉर्मूला बार    कार्यपुस्तिका एवं शीट प्रबंधक   |  संसाधन लाइब्रेरी (ऑटो टेक्स्ट)   |  खजूर बीनने वाला   |  कार्यपत्रकों को संयोजित करें   |  एन्क्रिप्ट/डिक्रिप्ट सेल    सूची के अनुसार ईमेल भेजें   |  सुपर फ़िल्टर   |   विशेष फ़िल्टर (फ़िल्टर बोल्ड/इटैलिक/स्ट्राइकथ्रू...) ...
शीर्ष 15 टूलसेट12 टेक्स्ट टूल्स (पाठ जोड़ें, अक्षर हटाएँ, ...)   |   50 + चार्ट प्रकार (गैन्ट चार्ट, ...)   |   40+ प्रैक्टिकल सूत्र (जन्मदिन के आधार पर आयु की गणना करें, ...)   |   19 निवेशन टूल्स (QR कोड डालें, पथ से चित्र सम्मिलित करें, ...)   |   12 रूपांतरण टूल्स (शब्दों को संख्याएँ, मुद्रा रूपांतरण, ...)   |   7 विलय और विभाजन टूल्स (उन्नत संयोजन पंक्तियाँ, विभाजन कोशिकाओं, ...)   |   ... और अधिक

एक्सेल के लिए कुटूल के साथ अपने एक्सेल कौशल को सुपरचार्ज करें, और पहले जैसी दक्षता का अनुभव करें। एक्सेल के लिए कुटूल उत्पादकता बढ़ाने और समय बचाने के लिए 300 से अधिक उन्नत सुविधाएँ प्रदान करता है।  वह सुविधा प्राप्त करने के लिए यहां क्लिक करें जिसकी आपको सबसे अधिक आवश्यकता है...

Description


ऑफिस टैब ऑफिस में टैब्ड इंटरफ़ेस लाता है, और आपके काम को बहुत आसान बनाता है

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
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