Reputation: 3
I created my first userform and I am using images as buttons to obtain a "hover" effect on the okay and cancel button. I currently have my laptop plugged in an external monitor and when I move the form from the monitor to the laptop everything is fine. However, when I start the macro without the external monitor plugged in, the pictures are much smaller.
I found two solutions looking on this forum: one is to optimize for compatibility, but it doesn't solve my problem and the graphic quality on my laptop becomes terrible. The second is the code in this answer: VBA Userform Images are Different Sizes or Lose Fidelity between Computers, which also didn't solve my problem.
I will need this form to circulate around and be used on different computers, that is why I am worried about this scaling problem. Hope someone can help, thank you in advance!
Upvotes: 0
Views: 349
Reputation: 196
The following are the properties of an image that I use as a basis for buttons. I don't appear to be having scaling issues so maybe you could try these properties.
Upvotes: 1
Reputation: 11
it is because your two screens have too high a resolution so use the event layout of the userform and in this event reset your images in your buttons
Upvotes: 0