Image on UF Not Loading At Workbook Open

JLouis

Active Member
Joined
Jan 1, 2004
Messages
295
Office Version
  1. 365
Platform
  1. Windows
I am trying to get my UF to load at startup with the image that is set to visible in properties. I have stripped down all the code to just point to the UF when the WB opens. I've tried many different things to get this to work and finally, I turn to you good fol;ks for a solution. The pics attached is what is loading (blank) and what should be loading (pic) on the UF.
1.png
2.png


That is a image control on top of a frame on the UF. After loading, I can literally do anything in the spreadsheet and the image will pop up. I appreciate any feedback and suggestions you coud provide.

VBA Code:
Private Sub Workbook_Open()
frmSetParent.Show
If Sheets("single").Range("c27").Value = 0 Then frmSetParent.Image1.Visible = True
End Sub
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
What if you put the if statement in the UserFrom_Initialize() event code? Would that help?
 
Upvote 0
Thanks for the reply. I have it in the inialization event but solved the problem with:

VBA Code:
Load frmSetParent
frmSetParent.Show

in the WB opening code. Not really sure why it works. Fresh load I guess.

Thanks
 
Upvote 0
Solution

Forum statistics

Threads
1,215,025
Messages
6,122,734
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top