pctechguide.com

  • Home
  • Guides
  • Tutorials
  • Articles
  • Reviews
  • Glossary
  • Contact

Quick and Simple Guide to Creating Image Catalogs in Excel

People use Excel to store various types of data. In many cases, this data needs an associated image. You need to know how to create a catalog of images in Excel that can be linked to our database.

HOW TO CREATE IMAGE CATALOGUES IN EXCEL

There are several methods to create an image catalog in Excel. Some Excel users prefer to implement the catalog by embedding the image associated with each record into the Excel sheet. However, if you have a database with many records you will end up with an Excel book that is too large because of the size of the images which will make it difficult to manage.

I always recommend using a VBA method because it allows us to leave the image files in a local folder on the computer and only load the images as they are used within our Excel database.

THE KEY TO CREATE THE IMAGE CATALOG

The key to having a catalog of images in Excel is to have a sheet that relates the “primary key” of our records with the corresponding image. If you are not familiar with the term “primary key” I recommend you read our previous articles on Database Design.

In the following example, you will see that I have a list of 5 Blu-ray movies and each of them has a unique product key.

How to create a catalogue of images in Excel

The images of each product will be stored in a directory called “images” and will have the same name as the product code to which they belong. Having the images with the same name as the product code will make it easier to manipulate them.

Repository of images for catalogue in Excel

INSERT AN IMAGE CONTROL

In order to be able to observe the product face image, I will insert an Image Control which is a type of ActiveX control. To do this I must go to the Programmer tab and in the Insert button select the appropriate control.

CREATE THE MACRO TO SHOW THE IMAGE

For this example, I will show the image when selecting a cell in the Code column. I will use the event Worksheet_SelectionChange. Right click on the name of the sheet and select the option View code and in the Visual Basic Editor select the event SelectionChange. Next, you will see the VBA code for that event:

Macro for Excel image catalog

The important part of this code is that when we select any cell within the A2:A6 range the Picture property of the Image1 object will be modified. The LoadPicture instruction is responsible for loading the image stored on our local hard drive:

LoadPicture(ActiveWorkbook.Path & “Images\” & Target & “.jpg”)

The ActiveWorkbook.Path instruction returns the current directory of the Excel file and concatenates it with the “images” directory where our files are located. Subsequently, the Target variable is concatenated, which contains the value of the selected cell and the extension of the image files is added, which for our example are JPG files.

TESTING THE CATALOG OF IMAGES IN EXCEL

Finally, I will prove that the newly created macro works correctly for our image catalog in Excel:

Example of an Excel image catalog

There are variants on this method and surely in another article, we will have the opportunity to explore different methods to show the images associated with a record of our database in Excel.  To continue with the tests you can download the workbook used along with the example images.

Filed Under: Communications

Latest Articles

Ensure your IT is Ready for 2016

With the holidays around the corner, 2016 will be here sooner than you know it. This makes it an excellent time to start thinking about next year’s IT budget, and how to best address your technology needs to keep your practice growing, compliant, and not stifled by outdated IT that distracts you … [Read More...]

Ad-Aware Total Security Review

PROS: The file shredder worked, albiet very slowly. CONS: Just about everything with Ad-Aware Total Security didn't do as advertised. Having tested it on three different systems (more than the recommended system specs were met) with nearly the same results, I wouldn't be surprised if … [Read More...]

CD-ROM Burn Proof Technology

Buffer underrun is one of the biggest problems encountered in CD recording. This can happen when attempting to burn a CD whilst performing other tasks, or when recording from a slow source to a fast target. Once the burning process starts, it is essential that the data to be recorded is available … [Read More...]

Top Taplio Alternatives in 2025 : Why MagicPost Leads for LinkedIn Posting ?

LinkedIn has become a strong platform for professionals, creators, and businesses to establish authority, grow networks, and elicit engagement. Simple … [Read More...]

Shocking Cybercrime Statistics for 2025

People all over the world are becoming more concerned about cybercrime than ever. We have recently collected some statistics on this topic and … [Read More...]

Gaming Laptop Security Guide: Protecting Your High-End Hardware Investment in 2025

Since Jacob took over PC Tech Guide, we’ve looked at how tech intersects with personal well-being and digital safety. Gaming laptops are now … [Read More...]

20 Cool Creative Commons Photographs About the Future of AI

AI technology is starting to have a huge impact on our lives. The market value for AI is estimated to have been worth $279.22 billion in 2024 and it … [Read More...]

13 Impressive Stats on the Future of AI

AI technology is starting to become much more important in our everyday lives. Many businesses are using it as well. While he has created a lot of … [Read More...]

Graphic Designers on Reddit Share their Views of AI

There are clearly a lot of positive things about AI. However, it is not a good thing for everyone. One of the things that many people are worried … [Read More...]

Guides

  • Computer Communications
  • Mobile Computing
  • PC Components
  • PC Data Storage
  • PC Input-Output
  • PC Multimedia
  • Processors (CPUs)

Recent Posts

How to Remove Windows Easy Warden

Easiest Removal Option: Remote Repair: Paying an expert to remove this threat is always the easiest option. It's also the most expensive. … [Read More...]

5 Tips to Secure Your Computer While Working From Home

Introduction Since its discovery in November of 2019, COVID-19 has grown to become a worldwide pandemic, forcing many people into the safety of … [Read More...]

DYMO Labelwriter 450 Turbo Label Printer

The DYMO Labelwriter 450 Turbo Label Printer can print speeds up to 71 labels per minute. What I really like about this thermal printer is you can use … [Read More...]

[footer_backtotop]

Copyright © 2026 About | Privacy | Contact Information | Wrtie For Us | Disclaimer | Copyright License | Authors