can add icons as buttons without add commandbutton on userform

MKLAQ

Active Member
Joined
Jan 30, 2021
Messages
428
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I'm not sure what I ask maybe could in excel.
as known when add icon into commandbutton on form will not show the caption clearly after upload icon . I have to resize the button then will be much big to show caption. my goal I will design the button by PHOTHOSHOP and I will upload to excel.
my question is: can I add the icon as picture on form without add commandbutton like inside sheet will use some shapes (rectangular, oval) and link it with macro?
 
Given that you are creating the image, why can't you just use a different file format?
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
because the PNG doesn't contain color for back color if I convert to jpg will make white for back color .
 
Upvote 0
No you don't. If you read the link I posted, you will see you can load the image from base64 strings. But if you don't want to use it thats ok.
 
Upvote 0
If you read the link I posted
in reality not yet.
you will see you can load the image from base64 strings
it can't save after close the form ?
so what's the aim for that if doesn't keep the picture without load every time run the form ?!:rolleyes:
 
Upvote 0
I'm sorry - I cannot understand your messages.
You want to save the image file after you close a form?
 
Upvote 0
I just don't understand what that means though.
if I have jpg picture and upload picture to commandbutton will keep the picture when run the form will show the picture as I uploaded, but in png picture when upload to commandbutton will not show the picture has ever uploaded when run the form after clos the form agian . based on your suggestion wen show browser and select picture to upload and when close the form and open again will not show uploaded picture . in png picture I have to upload picture for every time run the form .
I would the same way like JPG picture upload from first time then will show when every time run the form without I upload every time run the form.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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