Excel VBA: Insert Picture from Directory on Cell Value Change

  Рет қаралды 88,811

Computergaga

Computergaga

Күн бұрын

Пікірлер: 122
@karlf3613
@karlf3613 5 жыл бұрын
I really appreciate the video. I'm new to VBA and can't figure out how to loop this macro so that a value entered into cells A2, A3, A4, etc. will have an image populate beside the corresponding cell (e.g. image with file name written in A2 shows in B2, A3 in B3, and onward). Can you help? Thanks!
@shahzadisrani2616
@shahzadisrani2616 3 жыл бұрын
Sir thankyou very much your video is too useful but I have one query. I have +5k images, some are in png, jpg, jpeg format so kindly suggest instead of just png, how can we add multiple image extensions Thanks
@IvyPlans
@IvyPlans 6 жыл бұрын
Thi works great, how can you add multiple rows, I added a range of "A2:A10" in the VBA code, but it did not work. Do you have a video link that covers this and adding image height with an auto width, and centering of the I image into the cell. Thank you!
@timotheebrucho4211
@timotheebrucho4211 6 жыл бұрын
Awesome job @Computergaga! Very useful, but I still have few questions : Q1 Is it possible to specify different type of pictures formats (.jpg, etc.) and not only .png ? How do you write it in the code ? Q2 Is it possible to perfectly adapt the cell to the picture size and not only the height, i.e. also the column (width) How do you write it in the code ? Thanks a lot, Tim
@khalidhance1940
@khalidhance1940 Жыл бұрын
sir,how we can insert pic from userform to excel sheet in next empty cell.
@marnescoetser5970
@marnescoetser5970 6 жыл бұрын
Thanks for the info. I have another question. I have a list of Cars (for Example) with some extra info tipped on Excel and that same list of cars as images in a folder. I want excel to add those images to the spreadsheet automatically in a cell. How do I go about, is there a formula to get that done? If you have any info regarding this I would really appreciate it.
@khayamaluminium1176
@khayamaluminium1176 3 жыл бұрын
Good day! i copied and pasted these code in Module but when i run the micro the micro list doesn't show any micro can you assist please. Many Thanks
@salahaddin2009
@salahaddin2009 6 жыл бұрын
Thank you. But i want to enter a name in cel a3,a4,a5 etc and the image to update in b3,b4,b5 etc.. would i manually copy those cell ranges in or is there a one line code that takes care of that? Good work.
@Computergaga
@Computergaga 6 жыл бұрын
This code runs of the worksheet change event where the changed cell is target. This example tests target to see if it is B2. You could test if target is in column A with If target.column = 1 then. Then instead of With Range("B2") you can use With Target.Offset(0,1)
@sarahdavid1798
@sarahdavid1798 5 жыл бұрын
@@Computergaga would you be able to write it out? im trying to piece together what your saying, but its not working wit how im understanding what your saying to edit. :/ for example i inputted If Target.column = 1 then Target.Offset(0,1)("0,1").Address Then
@shozibjavaid4803
@shozibjavaid4803 6 жыл бұрын
@Computergaga Sir, basically I want to take url from a cell then after downloading the picture I want the picture to be inserted in a specific cell. Could you please help me in this question as well???
@sreejithganeasn8656
@sreejithganeasn8656 3 жыл бұрын
Hai How can lookup multiple images from one excel sheet to another without using Name manager option ?? PLZ help to resolve , Iam having more hand 700 images in a excel sheet , But i need only few items picture from that on another sheet
@IvyPlans
@IvyPlans 5 ай бұрын
How can you insert either.png or .jpg
@brad151159
@brad151159 6 жыл бұрын
Hi. Is there a way to just delete the picture in B2 and not all pictures on the sheet? I have other pictures on the sheet that I don't want to delete. Change- ActiveSheet.Pictures.Delete to ?
@Computergaga
@Computergaga 6 жыл бұрын
You can delete the picture using its name such as below. There are other techniques too. ActiveSheet.Shapes("Picture 1").Delete
@brad151159
@brad151159 6 жыл бұрын
Hi. Thanks. I did a work around in that I still delete all images and just bring my logo an the changing image in each time. Thank.
@macd799
@macd799 4 жыл бұрын
@@Computergaga To clarify, can "ActiveSheet.Pictures.Delete" be modified to delete from a specific cell/range [and not all images]? Ie: .... If Target.Address = Range("A2").Address Then ??Range("B2")??.Pictures.Delete PictureLoc = "***" & Range("A2").Value & ".png" With Range("B2") ... This method is giving me much faster results (than kzbin.info/www/bejne/npK9oX2ega-VmqM) but I'm a true VBA novice. Following other methods to delete from a specific range require a different Sub, and I'm hoping to be able to make a simple change to your method. Any help is much appreciated.
@macd799
@macd799 4 жыл бұрын
@Computergaga I think I've been able to answer my own question by (learning how to) calling another Sub - replacing "ActiveSheet.Pictures.Delete" with "Call DeleteImage" With this additional Sub: Sub DeleteImage() Dim pic As Picture ActiveSheet.Unprotect For Each pic In ActiveSheet.Pictures If Not Application.Intersect(pic.TopLeftCell, Range("B2")) Is Nothing Then pic.Delete End If Next pic End Sub ------------------- Many thanks again for your video
@macd799
@macd799 4 жыл бұрын
Final comment, I have found this to be a more reliable way of deleting an image from selected cells. Sub DeletePic() Dim xPicRg As Range Dim xPic As Picture Dim xRg As Range Application.ScreenUpdating = False Set xRg = Range("B2") For Each xPic In ActiveSheet.Pictures Set xPicRg = Range(xPic.TopLeftCell.Address & ":" & xPic.BottomRightCell.Address) If Not Intersect(xRg, xPicRg) Is Nothing Then xPic.Delete Next Application.ScreenUpdating = True End Sub
@kentaczdys
@kentaczdys 5 жыл бұрын
Hi. Great video. I have a problem like "iCode 1011" I need to have a pictures in columns D,E,F,G,H - row 3 based on dropdown list from row 4. I have copied and paste the code but it doesn't work. I tried to understand the other suggestion of yours ("This code runs of the worksheet change event where the changed cell is target. This example tests target to see if it is B2. You could test if target is in column A with If target.column = 1 then. Then instead of With Range("B2") you can use With Target.Offset(0,1)") but have no idea how it works. Will you be able to explain that in example. Thanks.
@anubis9139
@anubis9139 4 жыл бұрын
I'm getting a runtime error 1004 on the line where you "Set myPict = ..."
@FWWeitzel
@FWWeitzel 4 жыл бұрын
same for me
@sachin0200
@sachin0200 4 жыл бұрын
sir, how to use this code in command button (add a picture in particular cell), kindly reply...
@Spiderjolly
@Spiderjolly 6 жыл бұрын
Will the photo be visible after emailing it to someone using a macro to send via lotus notes ?
@Computergaga
@Computergaga 6 жыл бұрын
Yes should be. The photo is embedded into the worksheet.
@luciasolari872
@luciasolari872 4 жыл бұрын
Hello, how do i select the cells i want the picture to appear in?
@Computergaga
@Computergaga 4 жыл бұрын
This was specified in the With Range("B2") statement. You would need to use this section to specify the cell. how you do this depends on your specific scenario.
@samrashahzad1541
@samrashahzad1541 6 жыл бұрын
can we insert picture in visible cell only vba? if yes, would u like to share code
@Jensie_Pensie
@Jensie_Pensie 7 жыл бұрын
How do I apply this to multiple cells? For example, I want values of A2 to D2 and A3 to D3 and A4 to D4... etc...
@Computergaga
@Computergaga 7 жыл бұрын
The same code used here to insert the picture to a cell could be wrapped in a loop to insert pictures in D2, D3, D4 etc using the names from column A. It can also be run from a button instead of the worksheet change event demonstrated in the video.
@IvyPlans
@IvyPlans 6 жыл бұрын
When you say wrap in a loop do you mean to repeat the code again after the "end with" statement?
@_rcs
@_rcs 5 жыл бұрын
Thanks for the video. The .Top and .Left properties were exactly what I was looking for.
@Computergaga
@Computergaga 5 жыл бұрын
You're welcome Rory.
@Seth6000
@Seth6000 4 жыл бұрын
And if I dont want the pictures to be in my desktop what can I do? I want them in Excel and insert them to a form How can I do that?
@isabeljordan7475
@isabeljordan7475 5 жыл бұрын
Hi! I keep getting a Run-time error '1004': "Unable to get the Insert property of the Pictures class" error. Can you please help?
@MoobeVideos
@MoobeVideos 5 жыл бұрын
It is because you send the excel to someone or you dont have photos in PC anymore. The photos must be at the exact place, where you wrote it. For example "C:\\Users\Admin\Desktop" they have to be here all the time.
@yaderaguilar814
@yaderaguilar814 7 жыл бұрын
Works like a charm!!! But an you add a code where if you don't have a name for an item just to send a message saying the item does not exist instead of sending you to debug the code. Thank you. Appreciate your help.
@Computergaga
@Computergaga 7 жыл бұрын
Sure, in this example a Data Validation list is used. So that feature should prevent the user from selecting something that we do not have. We could click Data tab > Data Validation > Error Alert tab and customise the message displayed to the user there. If we were not using DV we could add lines like below to test something was selected before the codes runs to test the cell first and exit the macro with a message. If Target.Address = Range("A2").Address And Target.value = "" Then MsgBox "You have not chosen an item" Exit Sub End If To test if an item exists we would need to loop through a list of all the items to check (That is why Data Validation simplifies this task).
@scientist100
@scientist100 6 жыл бұрын
My approach: Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) Dim myPict As Picture Dim PictureLoc As String If Target.Address = Range("A2").Address Then ActiveSheet.Pictures.Delete PictureLoc = "C:\\Users\Admin\Desktop\images\" & Range("A2").Value & ".jpg" With Range("B2") On Error GoTo fbi Set myPict = ActiveSheet.Pictures.Insert(PictureLoc) .RowHeight = myPict.Height myPict.Top = .Top myPict.Left = .Left myPict.Placement = xlMoveAndSize fbi: MsgBox "Picture not found, please verify source in " & PictureLoc, vbOKOnly, "Image not found" End With End If End Sub
@roberttrump2109
@roberttrump2109 4 жыл бұрын
@@scientist100 Dude THANK YOU. I was ready to pull my hair out trying to figure out how to have a blank cell without having it shut down on me.
@macolloyd3242
@macolloyd3242 3 жыл бұрын
Many thanks for your idea
@Computergaga
@Computergaga 3 жыл бұрын
You're welcome.
@ΙωάννηςΠοντίκης-ι4θ
@ΙωάννηςΠοντίκης-ι4θ 4 жыл бұрын
Dear Sir, Thank you so muchhhh for this video!! My only problem is that I'm not using drop down list to manually change value as my reference cell is updated by a formula, so picture is not changing automatically,. Is there any way I can solve this ? Once again thank you so much for all the previous work.
@Computergaga
@Computergaga 4 жыл бұрын
Thank you. I don't know how this can be done with a formula updating a cell though.
@macd799
@macd799 4 жыл бұрын
@@Computergaga I hope this is not too late to be useful. I've been able to use the Worksheet_Calculate Sub to have the image change when there is a change in calculation for the referenced cell: --------------- Private Sub Worksheet_Calculate() Dim Xrg As Range Set Xrg = Range("A2") 'change in ? cells If Not Intersect(Xrg, Range("A2")) Is Nothing Then 'change in ? cells Dim myPict As Picture Dim PictureLoc As String ActiveSheet.Pictures.Delete PictureLoc = "***" & Range("A2").Value & ".png" With Range("B2") Set myPict = ActiveSheet.Pictures.Insert(PictureLoc) .RowHeight = myPict.Height myPict.Top = .Top myPict.Left = .Left myPict.Placement = xlMoveAndSize End With End If End Sub
@OblisGR
@OblisGR 5 жыл бұрын
Can anyone help me do that with more than one pictures? I dont know very much of vb
@IvyPlans
@IvyPlans 6 жыл бұрын
I love this code, just one thing; I am coding on a MAC and it does not recognize the file path. I have tried writing the path in different methods based on online forums but I still cannot get the right code. How should I write the code for a MAC?
@Computergaga
@Computergaga 6 жыл бұрын
I do not now about the differences between macs and Windows here. I am not a mac user.
@IvyPlans
@IvyPlans 6 жыл бұрын
That's okay, thanks for getting back to me so quickly.
@RajendraSharma-jg1oo
@RajendraSharma-jg1oo 6 жыл бұрын
formula is good but one issue as image is insert i want to insert images of specific dimension can i get from this as i am getting large big size picture which i have to set it ?????
@Computergaga
@Computergaga 6 жыл бұрын
Sure. You can specify the height and width of the picture on insertion. You can use the properties; .Height = 200 .Width = 300 to specify these dimensions. You can also disable/enable the lock aspect ration of an image with this line .ShapeRange.LockAspectRatio = msoTrue or .ShapeRange.LockAspectRatio = msoFalse
@RajendraSharma-jg1oo
@RajendraSharma-jg1oo 6 жыл бұрын
Computergaga thanks a lot its working
@Computergaga
@Computergaga 6 жыл бұрын
Great to hear Rajendra.
@brad151159
@brad151159 6 жыл бұрын
Hi. Really appreciate this video. Is there a way to just specify the images directory relative to the directory that the spreadsheet is saved in? For instance, an images directory directly beneath the directory that the spreadsheet is saved in. Instead of - PictureLoc = "C:\\Users\Admin\Desktop\images\" & Range("A2").Value & ".png" Something like PictureLoc = "..\images\" & Range("A2").Value & ".png" Thanks in advance
@Computergaga
@Computergaga 6 жыл бұрын
I am not sure if you can do exactly what you ask. I would need to test it. But we can definitely use a workaround. For example, to return the file path of a workbook you can use something like ActiveWorkbook.Path. So if this was assigned to a variable such as wbkPath = ActiveWorkbook.Path And then PictureLoc = wbkPath & "\images\" & Range("A2").Value & ".png" This would give the impression of looking relative to the spreadsheet location.
@brad151159
@brad151159 6 жыл бұрын
Hi. Thanks for taking the time to reply. It worked just as you indicated. Brilliant.
@IvyPlans
@IvyPlans 6 жыл бұрын
iCode 1011 Hi I would love to be able to loop this so that I can make it repeat until the end of the column, for example I have 10 rows, can you please help with looping, I have tried multiple times but get an error when writing the code., I am using a PC.
@gokmenslbas1627
@gokmenslbas1627 5 жыл бұрын
Here is my version. Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, [e:e]) Is Nothing Then Exit Sub On Error GoTo exit: 'here we clean pictures in a specific range not the whole worksheet For Each Pic In ActiveSheet.Pictures If Not Intersect(Pic.TopLeftCell, Range("A1:j60")) Is Nothing Then Pic.Delete End If Next Pic Dim pictureLoc As String Dim mypict As Object For i = 18 To 45 pictureLoc = "E:\TEKLİF\Teklifler\Resim" & "\" & Range("e" & i) & ".jpg" Set mypict = ActiveSheet.Pictures.Insert(pictureLoc) With Range("c" & i) mypict.Top = .Top mypict.Left = .Left mypict.Height = .Height mypict.Width = .Width End With Next i exit: End Sub
@patjosullivan1
@patjosullivan1 6 жыл бұрын
Could you add error code to handle a situation where there are no pictures for the name. Also, I would like to get a unique look up value from a combination of 3 cells, Concatenate or & functions will not work. Other than that it works perfectly, cheers.
@Computergaga
@Computergaga 6 жыл бұрын
Sure. I believe the Runtime error 1004 is displayed if it cannot find the picture. This will occur when i tries to insert it. You could add an On Error statement to handle this error code. The concatenation can be done with the ampersand. For example; PictureName = Range("A2").Value & Range("B2").Value & Range("C2").Value
@patjosullivan1
@patjosullivan1 6 жыл бұрын
Cool, got the concatenate working, just trying to figure out the error code now, cheers.
@Computergaga
@Computergaga 6 жыл бұрын
Good to hear. Yes, Google the On Error statement. You can test if Err.Number = 1004 and perform an action.
@renesaccardo
@renesaccardo 4 жыл бұрын
How can i do this on PowerPoint?
@MohAboAbdo
@MohAboAbdo 4 жыл бұрын
Thank you very much for this great video, for this unique code, and for this great explanation.
@Computergaga
@Computergaga 4 жыл бұрын
You're very welcome. Thank you.
@najmulgani2814
@najmulgani2814 6 жыл бұрын
IT IS POSSIBLE TO TYPE THE FILE NAME IN EXCEL AND INSERT PICTURE IN ANOTHER CELLL
@antonrodr478
@antonrodr478 7 жыл бұрын
IS there any way to give dimensions to image from cell
@Computergaga
@Computergaga 7 жыл бұрын
Sure, this can also be added to the With construct with .Width = ? and .Height = ?.
@shabbirj
@shabbirj 6 жыл бұрын
@@Computergaga hi kindly send some example of fix width and height
@shozibjavaid4803
@shozibjavaid4803 6 жыл бұрын
@ Computergaga I am having this error, 1004 unable to get the insert property of the picture class. Could you please tell me, how to tackle it?
@Computergaga
@Computergaga 6 жыл бұрын
There is an error somewhere in your picture name, extension or file path.
@shozibjavaid4803
@shozibjavaid4803 6 жыл бұрын
Private Sub Worksheet_Change(ByVal Target As Range) Dim myPict As Picture Dim PictureLoc As String If Target.Address = Range("A2").Address Then ActiveSheet.Pictures.Delete With Range("B2") Set myPict = ActiveSheet.Pictures.Insert("C:\\Users\Admin\Desktop\images\" & Range("A2").Value & ".jpg") .RowHeight = myPict.Height myPict.Top = .Top myPict.Left = .Left myPict.Placement = xlMoveAndSize End With End If End Sub
@shozibjavaid4803
@shozibjavaid4803 6 жыл бұрын
This is the code I am using, can you sp0t the error please?
@Computergaga
@Computergaga 6 жыл бұрын
I don't think the error is necessarily with the code Shozib. The code uses the C:\\Users\Admin\Desktop\images\ path. Is that the path your image is saved under? It uses a jpg extension. Is your image a jpg? or is it .png or .bmp or. gif? Also check cell A2. Is it spelt correctly in the cell and the image name?
@shozibjavaid4803
@shozibjavaid4803 6 жыл бұрын
("C:\\Users\Admin\Desktop\images\" & Range("A2").Value & ".jpg") This is the path which I am using
@deepalparekh3217
@deepalparekh3217 6 жыл бұрын
Hi, I am unable to get the result for multiple cells, can you help me with the code
@Computergaga
@Computergaga 6 жыл бұрын
You would need the target check to look at the cells in a range, rather than just B2 like the video. You probably want a variable for the row number. How familiar are you with VBA? What do you have so far?
@mehboob1976
@mehboob1976 Жыл бұрын
how to do this in google sheet?
@Computergaga
@Computergaga Жыл бұрын
Not sure. I think Google Sheets has a formula for this. No VBA.
@sasitanukucollege6739
@sasitanukucollege6739 2 жыл бұрын
sir send me sample sheet images sir no of time try not showing iamges sir
@hasmuddinratnani5561
@hasmuddinratnani5561 6 жыл бұрын
yes can you help with the file
@tomkei7374
@tomkei7374 5 жыл бұрын
Could you please sir tell me how do I insert two pictures at a time in two cells by giving a name
@shahabali4518
@shahabali4518 5 жыл бұрын
It is simple take double picture dim and strings and it works
@mikeygrey9855
@mikeygrey9855 3 жыл бұрын
@@shahabali4518 Can you share your code bro?
@estelam905
@estelam905 7 жыл бұрын
I've tried the code, and it didn't work for me. I've copied and pasted the code exactly as yours, only changed the following "C:\\Users\Admin\Desktop\images\" to my own path. When I tried to use the drop down list it gives me the following error "Run-time error '1004': Unable to get the Insert Property of the Picture class" When I press "debug" it highlights the following in yellow "Set myPict = ActiveSheet.Pictures.Insert(PictureLoc)" Please help, if you could please send me the file on my email or let me know how I can correct it, it would be greatly appreciated.
@Computergaga
@Computergaga 7 жыл бұрын
Is your worksheet protected? Also check that you are using a variable named PictureLoc and that you have used a valid file path with the appropriate slashes \
@estelam905
@estelam905 7 жыл бұрын
Thanks a lot for your prompt reply, I've been racking my brain trying to figure out how to do what you showed on your video and have been unable to find another way which uses a cell with drop down list. In response to your questions: 1. No, my worksheet is not protected 2. I copied the code exactly as yours, the only change I made was to the file path - I've pasted it below to see if you can somehow help me figure it out why it gives me the error I stated earlier Private Sub Worksheet_Change(ByVal Target As Range) Dim myPict As Picture Dim PictureLoc As String If Target.Address = Range("A2").Address Then ActiveSheet.Pictures.Delete PictureLoc = "C:\\Users\henry\Desktop\images\" & Range("A2").Value & ".png" With Range("B2") Set myPict = ActiveSheet.Pictures.Insert(PictureLoc) .RowHeight = myPict.Height myPict.Top = .Top myPict.Left = .Left myPict.Placement = xlMoveAndSize End With End If End Sub
@Computergaga
@Computergaga 7 жыл бұрын
My next guess would be to check the name and file format of your picture. Maybe it is not a png file. If not this I'm out of ideas for the moment.
@estelam905
@estelam905 7 жыл бұрын
Thanks for all your help. Would you be willing to send me the file with the code to my email? I've tried everything and have been unable to make it work. It gives me the same error I sent you above. The only VBA code I was able to make work that is similar to yours is the following, but the huge drawback is that it does not allow "A2" to have a drop down list. I am really new to coding, so have been unable to figure out how to make the code below accept a drop down list. Private Sub Worksheet_Change(ByVal Target As Range) Dim shp As Shape If Intersect(Target, [A2]) Is Nothing Then Exit Sub If Target.Row Mod 20 = 0 Then Exit Sub On Error GoTo son For Each shp In ActiveSheet.Shapes If shp.Type = msoPicture And shp.TopLeftCell.Address = Target.Offset(0, 4).Address Then shp.Delete Next If Target.Value "" And Dir(ThisWorkbook.Path & "\" & Target.Value & ".jpg") = "" Then 'picture not there! MsgBox Target.Value & " Doesn't exist!" End If ActiveSheet.Pictures.Insert(ThisWorkbook.Path & "\" & Target.Value & ".jpg").Select Selection.Top = Target.Offset(0, 4).Top Selection.Left = Target.Offset(0, 4).Left With Selection.ShapeRange .LockAspectRatio = msoFalse .Height = Target.Offset(0, 4).Height .Width = Target.Offset(0, 4).Width End With Target.Offset(1, 0).Select son: End Sub
@Computergaga
@Computergaga 7 жыл бұрын
The drop down list is created with Data Validation. You can find this on Data to create a simple drop down list.
@sureshatsasi
@sureshatsasi 2 жыл бұрын
Sir vba code Not working so plz sample zip file send me sir
@stevewesslersr7014
@stevewesslersr7014 7 жыл бұрын
The fORMULA DID NOT WORK FOR ME., i EVEN CHANGED ALL MY PICTURES AND NAMES TO WHAT YOU SHOW IN THE FILE. THIS IS THE ERROR i GET. With Range("B2") Set myPict = ActiveSheet.Pictures.Insert(PictureLoc) THE CODE LINE ABOVE IS HIGHLIGHTED IN YELLOW. WITH THIS ERROR UNABLE TO GET THE INSERT PROPERTY OF THE PICTURE CLASS
@Computergaga
@Computergaga 7 жыл бұрын
I would check the format of your pictures. Are they all JPG? May have to change the code, or the picture formats to fit.
@soulquest85
@soulquest85 4 жыл бұрын
@@Computergaga Hi, if I want to insert JPG, do I just change the .png to .jpg?
@SanthoshKumar-tr2rn
@SanthoshKumar-tr2rn 6 жыл бұрын
Hi Thank you for your Coding, I am looking for a help in my following code, if the photo is not in my folder the Cursor is not coming back to my default Cell (B2), but if the photo is there, it will back to B2, how i will rectify the issue Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) Sheet1.Unprotect Password:="123" On Error GoTo finish Dim myPict As Picture Dim PictureLoc As String If Target.Address = Range("B2").Address Then ActiveSheet.Pictures.Delete PictureLoc = "C:\MASTER DATA\STAFFPHOTO\" & Range("B2").Value & ".jpg" With Range("C2") Set myPict = ActiveSheet.Pictures.Insert(PictureLoc) myPict.Top = .Top myPict.Left = .Left Sheet1.Protect Password:="123" End With ActiveSheet.Protect.EnableSelection = Range("B2").Activate End If finish: End Sub
@nelsondarwinpaktech3954
@nelsondarwinpaktech3954 5 жыл бұрын
great
@Computergaga
@Computergaga 5 жыл бұрын
Thank you Nelson.
@tutspamore8419
@tutspamore8419 4 жыл бұрын
Now i got the idea
@Computergaga
@Computergaga 4 жыл бұрын
Excellent! Happy to help.
@jorgehumbertodossantos6612
@jorgehumbertodossantos6612 3 жыл бұрын
NIce. 10
@Computergaga
@Computergaga 3 жыл бұрын
Thank you, Jorge.
@PhantomMonk3y
@PhantomMonk3y 4 жыл бұрын
how do i add more pics to the next cell below?
Excel VBA IF THEN Statement (with ELSEIF & Looping in cells)
12:10
Leila Gharani
Рет қаралды 324 М.
Excel VBA to Insert Picture into Cell and Resize Picture to fit into Cell
9:15
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
How to Do a Picture Lookup in Excel
9:43
Leila Gharani
Рет қаралды 505 М.
How to Display Pictures on Excel Worksheet Using VBA
19:48
Dinesh Kumar Takyar
Рет қаралды 198 М.
Display Image Based on Excel Formula
2:57
Braintek
Рет қаралды 152 М.
VBA to BROWSE & COPY Data from SELECTED File in Excel
10:00
Leila Gharani
Рет қаралды 337 М.
Insert and resize a picture in Excel with VBA
4:04
Barb Henderson
Рет қаралды 40 М.
Picture LOOKUP (Image Lookup) in Excel using Formulas
6:51
TrumpExcel
Рет қаралды 221 М.
Searchable Drop Down List in Excel (Very Easy with FILTER Function)
11:00
Fully Automated Data Entry User Form in Excel - Step By Step Tutorial
35:41