yes , in the Word its working , the problem only in the Excel
Can not Insert Picture to userform or image form
najmi mohamed
0
Reputation points
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
2 answers
Sort by: Most helpful
-
-
AlexZhu-MSFT 5,871 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