How to Insert Object in Excel (Ultimate Guide)

In this article, you will get a comprehensive guide on how to insert an object in Excel. You will learn to insert objects using Built-in features, Shortcut and Excel VBA. We will also see practical examples of inserting and managing various files like Images, PDFs, etc.

Suppose we want to insert company logos, product images and sales trends. In this case, adding Images as Objects will achieve the goal. We can also include PowerPoint files and PDFs within Excel. We can embed Videos in a cell when providing tutorials.

Learning this article will make the reader impress with your data skills. So get ready to take your skills to the next level!

Insert Object in Excel


Download Practice Workbook

You can download the practice workbook by clicking the link below.


What Are Objects in Excel?

Objects refer to the various elements and components you can work with. The main objects in Excel are workbooks, worksheets, ranges, cells, and charts. These objects enable users to manipulate and analyze data effectively. Additionally, we can embed images, videos, and other files as objects into worksheets.


How to Insert Object in a Sheet in Excel

Method 1: Insert Object from Object Window in Excel

Case 1.1: Create a New Object

First, navigate to Insert >> expand the Text group >> click on Object.

Navigate to Insert and expand Text group

Consequently, the Object window will open. Go to Create New >> choose Object type >> check Display as icon >> hit OK.

Choose Microsoft Word Document as Object Type

As a result, we will see an output like the following.

Adjust Microsoft Word Document inside E5

Likewise, insert another object for cell E6 to see the output.

Create a New Object From Inside Excel


Case 1.2: Embedding an Existing Object

Initially, go to Insert >> expand the Text group >> click on Object.

Go to Insert followed by Text to insert an Existing Object

At this time, choose Create from File >> click on Browse.

Choose Create from File followed by Browse from Object window

Eventually, the Browse window will appear. Later, choose the intended file as Object >> click on Insert.

Choose intended file and click on Insert

Next, check Display as icon from window Object >> hit OK.

Check Display as icon and click on OK

Thus, we will get an output like the following.

Adjust Embedded Object in E5

Follow the above procedures >> Insert the intended Word Document for cell E6.

Embed another existing object in E6


Method 2: Use Shortcut Key to Insert an Object

Firstly, choose the intended sheet >> press Alt+N+ZT+J to open the Object window.

Choose intended sheet and press shortcut keys to open Object window

Next, click Create New >> check Display as icon >> hit OK.

Choose intended Object and check Display as icon

Later, adjust the embedded object within cell E5 to see the output.

Output of using shortcut keys to insert object in excel


Method 3: Run Excel VBA Code to Insert an Object

First, navigate to the Developer tab >> click on Visual Basic.

Navigate to Insert and click on Visual Basic

Next, click Insert >> choose Module >> Insert the following code and Run.

Sub InsertAnObject()

    Dim ws As Worksheet
    Dim fileDialog As fileDialog
    Dim filePath As String
   
    Set ws = ThisWorkbook.Sheets("Excel VBA to Insert Object")
   
    Set fileDialog = Application.fileDialog(msoFileDialogFilePicker)
   
    fileDialog.Title = "Select Word Document"
    fileDialog.Filters.Clear
    fileDialog.Filters.Add "Word Documents", "*.docx; *.doc"
   
    If fileDialog.Show = -1 Then
        filePath = fileDialog.SelectedItems(1)
       
        ws.OLEObjects.Add(Filename:=filePath, Link:=False, DisplayAsIcon:=True, _
            IconFileName:="C:\WINDOWS\Installer\{90160000-000F-0000-1000-0000000FF1CE}\wordicon.exe", _
            IconIndex:=0, IconLabel:=GetFileNameFromPath(filePath)).Select
    End If

End Sub

Function GetFileNameFromPath(fullPath As String) As String

    Dim pathParts() As String

    pathParts = Split(fullPath, "\")
    GetFileNameFromPath = pathParts(UBound(pathParts))

End Function

Insert intended code in module and run

Consequently, the Select Word Document window will open. Choose the intended file >> hit OK.

Choose intended word file from Select Word Document window

Last, adjust the embedded object within cell E5 to see the output.

Output of Running Excel VBA code to insert an Object


How to Insert Various Types of Objects in Excel

Example 1: Insert Image

Navigate to Insert >> expand Text >> click Object.

Navigate Insert to embed various types of objects

Next, choose Create from File >> click on Browse.

Browse from Object window to select intended object

Consequently, the Browse window will pop up. Select the intended Image file as Object >> click on Insert.

Choose intended file and click on Insert

Later, check Display as icon >> hit OK from the Object window.

Choose Display as icon and click OK

As a result, we will see an output like the below one.

Insert Image as Object in Excel


Example 2: Insert PowerPoint File

Follow the above procedures >> Choose a PowerPoint file >> click Insert.

Choose PowerPoint file and Insert

As a result, we get an outcome like the following.

Insert PowerPoint file as Object in Excel


Example 3: Insert Excel File

To insert an Excel file as an Object, open the Browse window >> choose intended file >> hit Insert.

Choose Excel File and click on Insert

Thus, we will have an output like the below one.

Insert Excel File as an Object in Excel


Example 4: Insert PDF File

Choose a PDF file as Object >> click on Insert.

Choose PDF file and click on Insert

Consequently, the output will look like the following.

Insert PDF File as an Object in Excel


Example 5: Insert Video

First, open the Browse window >> choose a Video file as Object >> click on Insert.

Choose a Video Object and Insert

Lastly, adjust the inserted object within cell E9 to see the output.

Insert Video File as an Object in Excel


How to Manage Objects with Selection Pane in Excel

Example 1: Group Objects

Hold the Ctrl key >> click on each Object to select multiple objects.

Hold Ctrl and click on each object

Later, right-click on the selected objects >> Choose Group from the context menu >> click on Group.

Right-Click on selected objects and group


Example 2: Change Order of Objects

First, navigate to Home >> choose Find & Select >> click on Selection Pane.

Go to Home and open Selection Pane

Later, select intended Object >> use the Up and Down arrows to change order.

Change Order of Objects

Note
We can only change the order of objects in a group.

Example 3: Hide Objects

Open the Selection Pane >> click on an Object >> Lastly, click the Eye icon to hide.

Hide Objects in Excel

As a result, we will see an output like the following.

The intended object has been hidden


How to Insert a Link to a File in Excel

Open the Object window >> check Link to file >> hit OK.

Insert a Link to a File in Excel

Thus, if we make any changes to the source file, that will reflect in the inserted file.

Output of Inserting a Link to a File in Excel


Link to Object Vs Embed to Object

Linking to objects creates a connection to external files. It allows updates to be reflected in the Excel file. In contrast, embedding things makes the content part of the Excel file. We can use linking when you want real-time updates and smaller file sizes. On the other hand, embedding offers us portability and offline access.


Things to Remember

  • You can apply the Link to file option to prevent increasing Excel file size.
  • Change the original file before embedding, as it loses all connections to the source file.

Frequently Asked Questions

  • How do I insert symbols in Excel?

To insert symbols in Excel, go to Insert followed by Symbol. Later, choose the desired symbols and click the Insert button to place them in a cell.

  • Can we insert an image in Excel?

Yes, we can insert an image in Excel. To do this, navigate to Insert and click on Picture. A window will pop up to browse and select the image file. Next, choose the image and click Insert.

  • What is the shortcut for inserting an object?

The shortcut for inserting an object in Excel is Alt + N followed by J. We must hold down the Alt key, press N, and press J to insert an object quickly.


Conclusion

You have learned how to insert an object in Excel. We can confidently use the methods and examples covered in this context. Thus, you can insert images, word documents, and other files to impress your audience. Visit our ExcelDemy site to learn more about the various aspects of Excel. You can also submit your Excel issue to our ExcelDemy Forum.


Insert Object in Excel: Knowledge Hub


<< Go Back to Objects in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Lutfor Rahman Shimanto
Lutfor Rahman Shimanto

Lutfor Rahman Shimanto, BSc, Information Technology, Jahangirnagar University, Bangladesh, has worked with the ExcelDemy project for over a year. He has written 50+ articles and provided solutions of 100+ comments for ExcelDemy. Currently, he works as an Excel & VBA Developer and provides support and solutions in the ExcelDemy Forum. He has solved 100+ ExcelDemy Forum problems. His work and learning interests are in developing various Excel & VBA and Desktop applications. Outside of work, he enjoys Chess... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo