Forum Discussion

scottpar28's avatar
scottpar28
Copper Contributor
Nov 28, 2022

VLOOKUP issue with pictures

I need help with my 3 tab spreadsheet  where 1 tab is the pictures, 'ALL' tab that has the whole dataset and the last tab is the final sheet that uses the VLOOKUP to bring the data over from the All tab to specific Item number.

The pictures in the column are formatted as locked and Move with cells

I cant seem to figure it out.

 

 

 

5 Replies

  • scottpar28's avatar
    scottpar28
    Copper Contributor

    its a few years now, and I am still having this issue.  I have a 1200 pictures in separate cells that I want to "Place in cell" so I can reference from a separate spreadsheet.  I can use vlookup  or IMAGE function?

    Besides spending an hour or more hitting each picture to "place in cell" is there a way to "Place in cell" in once action or formula?

     

    • Patrick2788's avatar
      Patrick2788
      Silver Contributor

      You can use a macro to loop through the objects in the sheet:

      Sub PlaceAllPicturesInCells()
      
      Dim s As Shape
      
      Application.ScreenUpdating = False
      
      'Go through all pictures in sheet and place in cells
      For Each s In ActiveSheet.Shapes
          s.Select
          s.PlacePictureInCell
      Next s
      
      Application.ScreenUpdating = True
      
      
      End Sub

      I'm not a vba guy so this looks rudimentary but gets the job done.

    • scottpar28's avatar
      scottpar28
      Copper Contributor
      oh great to hear. I havent used Access in years beacause of how excel was easier to use to get the same job done (at least for me). Do you know if access can accomplish this?
      • Patrick2788's avatar
        Patrick2788
        Silver Contributor
        I don't believe Access has the feature in tables but don't quote me on that because I don't use it much for the same reasons you've given. I prefer Excel.

Resources