Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Wednesday at 4:58 AM
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Ad icon
Express VPN PC - 1 Year Rs. 600.00
Sanathbh
Updated:
Sep 19, 2026
Ad icon
Capcut Pro 7 Days Team Plan - Rs. 3️⃣0️⃣0️⃣
Sanathbh
Updated:
Sep 19, 2026
Singapore V2ray VPN for Tunneling
hu KANNA
Updated:
Sep 18, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Excel වැඩක්.
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="hasithayad" data-source="post: 28869915" data-attributes="member: 373872"><p>මචන් බලපන් 1258, 1259 images දෙකම සෙට් වෙන්නේ 1258ට. 1093 j, images දෙකක් එකක් උඩ එකක් තියනවා. ඒවා නිසා වෙන්න ඕනෙ අවුල් යන්නෙ. මම [USER=582168]@EKGuest[/USER] ගේ කෝඩ් එක අප්ඩේට් කරා දාලා බලන්න. ඔක්කොම images 1178ක් සේව් වෙනවා</p><p></p><p>[CODE]</p><p>Dim shp As Shape, Temp As Object, tArea As Object, itemCodeColumn As String, saveInFolderName As String</p><p></p><p>itemImageColumn = "G"</p><p>itemCodeColumn = "A"</p><p>saveInFolderName = "C:\Users\user\Documents\excel_img"</p><p></p><p>Application.ScreenUpdating = False</p><p>MsgBox ("Total Images: " & ActiveSheet.Shapes.Count)</p><p>For Each shp In ActiveSheet.Shapes</p><p>On Error Resume Next</p><p> If shp.TopLeftCell.Column = Range(itemImageColumn & 1).Column Then</p><p> If shp.Type = msoPicture Then</p><p> shp.Select</p><p> Application.Selection.CopyPicture</p><p> DoEvents</p><p> Set Temp = ActiveSheet.ChartObjects.Add(0, 0, shp.Width, shp.Height)</p><p> Set tArea = Temp.Chart</p><p> Temp.Activate</p><p> If Dir(saveInFolderName & "\" & ActiveSheet.Range(itemCodeColumn & shp.TopLeftCell.Row).Value & ".jpg") = "" Then</p><p> With tArea</p><p> .ChartArea.Select</p><p> .Paste</p><p> .Export (saveInFolderName & "\" & ActiveSheet.Range(itemCodeColumn & shp.TopLeftCell.Row).Value & ".jpg")</p><p> End With</p><p> Else</p><p> MsgBox ("Image Already exists: " & shp.TopLeftCell.Address)</p><p> End If</p><p> Temp.Delete</p><p> DoEvents</p><p> End If</p><p> End If</p><p>If Err.Number > 0 Then</p><p> MsgBox ("Error: No-" & Err.Number & vbCrLf & Err.Description & vbCrLf & "CELL: " & shp.TopLeftCell.Address)</p><p> Err.Clear</p><p>End If</p><p>Next</p><p>MsgBox ("Complete")</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="hasithayad, post: 28869915, member: 373872"] මචන් බලපන් 1258, 1259 images දෙකම සෙට් වෙන්නේ 1258ට. 1093 j, images දෙකක් එකක් උඩ එකක් තියනවා. ඒවා නිසා වෙන්න ඕනෙ අවුල් යන්නෙ. මම [USER=582168]@EKGuest[/USER] ගේ කෝඩ් එක අප්ඩේට් කරා දාලා බලන්න. ඔක්කොම images 1178ක් සේව් වෙනවා [CODE] Dim shp As Shape, Temp As Object, tArea As Object, itemCodeColumn As String, saveInFolderName As String itemImageColumn = "G" itemCodeColumn = "A" saveInFolderName = "C:\Users\user\Documents\excel_img" Application.ScreenUpdating = False MsgBox ("Total Images: " & ActiveSheet.Shapes.Count) For Each shp In ActiveSheet.Shapes On Error Resume Next If shp.TopLeftCell.Column = Range(itemImageColumn & 1).Column Then If shp.Type = msoPicture Then shp.Select Application.Selection.CopyPicture DoEvents Set Temp = ActiveSheet.ChartObjects.Add(0, 0, shp.Width, shp.Height) Set tArea = Temp.Chart Temp.Activate If Dir(saveInFolderName & "\" & ActiveSheet.Range(itemCodeColumn & shp.TopLeftCell.Row).Value & ".jpg") = "" Then With tArea .ChartArea.Select .Paste .Export (saveInFolderName & "\" & ActiveSheet.Range(itemCodeColumn & shp.TopLeftCell.Row).Value & ".jpg") End With Else MsgBox ("Image Already exists: " & shp.TopLeftCell.Address) End If Temp.Delete DoEvents End If End If If Err.Number > 0 Then MsgBox ("Error: No-" & Err.Number & vbCrLf & Err.Description & vbCrLf & "CELL: " & shp.TopLeftCell.Address) Err.Clear End If Next MsgBox ("Complete") [/CODE] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom