Can not Insert Picture to userform or image form

najmi mohamed 0 Reputation points
2024-06-04T08:39:57.0533333+00:00

Hi ,

if i click to add picture to user for or any tools in VBA prosperities , no thing happened

When I press the button bellow to add an image or background in all VBA Forms and tools , there is no response to the button and it is not possible to add an image I have deleted and reinstalled Microsoft Office but the problem still persists

for more clarify the button act as if its just a decor it doesn't show any respond even to click or dub click

my office is 365

User's image

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,432 questions
Windows 365 Business
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,680 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
604 questions
{count} votes

2 answers

Sort by: Most helpful
  1. najmi mohamed 0 Reputation points
    2024-06-04T11:49:18.53+00:00

    yes , in the Word its working , the problem only in the Excel

    0 comments No comments

  2. AlexZhu-MSFT 5,626 Reputation points Microsoft Vendor
    2024-06-05T05:32:33.6366667+00:00

    Hi,

    Is it possible to insert picture with code? For example:

        Set Img = UserForm1.Controls.Add("Forms.Image.1")
       
        With Img
            'Load Picture to Image Control
            .Picture = LoadPicture("C:\test.jpg")
           
            'Align the Picture Size
            .PictureSizeMode = fmPictureSizeModeStretch
           
            'Image Position
            .Left = 50
            .Top = 10
        End With
    

    Regards,

    Alex