Jul 12 2023 07:07 AM
Building a form that requires excel functionality, but also requires the ability to have the Image (Active X Control) working as it does in Word. Currently in excel the Image box does not have the "picture" header when inserted into the form and therefore does not have give the user the ability to click the box to then select an image to upload to the box.
Have been told this is with developers to complete for excel so would like to know if there is an eta for this and also if there is any known work arounds in the meantime.
Jul 15 2023 11:05 PM
Here are a few options you can explore in the meantime:
Here is an example of VBA code that demonstrates how to create a custom UserForm in Excel with the ability to upload and display images:
Private Sub CommandButton1_Click()
Dim filePath As String
Dim img As Picture
'Open a file dialog to select an image file
With Application.FileDialog(msoFileDialogFilePicker)
.Title = "Select an Image File"
.Filters.Add "Images", "*.jpg;*.jpeg;*.png;*.gif;*.bmp"
.FilterIndex = 1
If .Show = -1 Then
filePath = .SelectedItems(1)
End If
End With
'Load the selected image into the Image control on the UserForm
If filePath <> "" Then
Set img = LoadPicture(filePath)
Me.Image1.Picture = img
End If
End Sub
It's worth noting that Microsoft continuously updates and enhances its software products, so it's possible that future versions of Excel may include the functionality you're looking for. To stay up to date with the latest features and updates for Excel, you can check the Microsoft Office website, official blogs, or announcements from Microsoft. Since no one has answered it for at least one day or more, I entered your question in various AI. The text and the steps are the result of various AI's put together.
My answers are voluntary and without guarantee!
Hope this will help you.