VBA Code to Insert Picture from File in Excel

This code inserts a picture from a file into the active worksheet.

VBA Code:

Sub InsertPictureFromFile()
    Dim picturePath As String
    
    picturePath = "C:\Path\to\Picture.jpg"
    ActiveSheet.Pictures.Insert(picturePath).Select
End Sub

Check All VBA Codes

Join Our Telegram Group techguruplus telegram group Join Our WhatsApp Group techguruplus whatsapp group

Leave a Comment