userform buttons with frame stopped working

littlepete

Well-known Member
Joined
Mar 26, 2015
Messages
503
Office Version
  1. 365
Platform
  1. Windows
hello :)

to get around my list, i created a userform with a lot of buttons.
I grouped them together along what their function is.

since i added the frames (made with a transparent textbox) the buttons are unreachable...

what should i add in vba to be able to click my buttons again?

thank you !!!

ps
those who follow me know i had a big problem with reading the button texts, well
since that is solved i'm now working on my userform ;) !!!
 

Attachments

  • 2022-03-05.png
    2022-03-05.png
    39 KB · Views: 15

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
If you want put your buttons inside a Frame.
You should see Frame in the Toolbox.

Do not put your buttons inside a transparent textbox
You said:
since i added the frames (made with a transparent textbox)
 
Upvote 0
I would second My Answer Is This answer about using a Frame rather than a transparent textbox. However, be sure to put the Frame on the UserForm before putting buttons in it. The Frame is touchy about how you bound other objects in it. Also, adding buttons to an existing frame will make it possible to move the group of buttons just by moving the Frame.

Another option to experiment with is putting a Label on you UserForm and size it to fit all the buttons you want on it and then add the buttons on top of it. I haven't tried this specifically but have experimented with layering controls on top of one another to get different effects.
 
Upvote 0
Solution
I would second My Answer Is This answer about using a Frame rather than a transparent textbox. However, be sure to put the Frame on the UserForm before putting buttons in it. The Frame is touchy about how you bound other objects in it. Also, adding buttons to an existing frame will make it possible to move the group of buttons just by moving the Frame.

Another option to experiment with is putting a Label on you UserForm and size it to fit all the buttons you want on it and then add the buttons on top of it. I haven't tried this specifically but have experimented with layering controls on top of one another to get different effects.
thank you so much !!! indeed first the frame and then the buttons, there was a lot of moving around involved hahaha !!!
have a great sunday !!!
 
Upvote 0
thank you so much !!! indeed first the frame and then the buttons, there was a lot of moving around involved hahaha !!!
have a great sunday !!!
Glad I was able to help you.
Come back here to Mr. Excel next time you need additional assistance.
 
Upvote 0
Glad I was able to help you.
Come back here to Mr. Excel next time you need additional assistance.

hello :)

next step is to explore the backcolor options with rgb...
but i dont find the right place to write "ufaddresslist.backcolor = rgb(255, 255, 255) (as example)

where should i change the backcolor of some buttons?

thank you ;)
 
Upvote 0
hello :)

next step is to explore the backcolor options with rgb...
but i dont find the right place to write "ufaddresslist.backcolor = rgb(255, 255, 255) (as example)

where should i change the backcolor of some buttons?

thank you ;)
Why do you need to use vba to change Background color?

Is the color going to be changed do to something happening?
 
Upvote 0
Why do you need to use vba to change Background color?

Is the color going to be changed do to something happening?

hello :)

i would like to give all buttons doing similar things give the same background:
for example the exit userform button with a red backcolor; filtering (two buttons) with a green and so on :) ...

now all is in the same (boring) color :) so far ;) ...
 

Attachments

  • 2022-03-05.png
    2022-03-05.png
    39 KB · Views: 4
Upvote 0
Do you know you can click on the control and in the Vba editor properties window choose
Forecolor or Backcolor click the down arrow and choose Palette and select the color you want.
 
Upvote 0
Do you know you can click on the control and in the Vba editor properties window choose
Forecolor or Backcolor click the down arrow and choose Palette and select the color you want.

hello :)

i was only looking for vba to change it :) this is a good way too ! thank you again :) my creative mind can go loose again :)

thx !!!
 
Upvote 0

Forum statistics

Threads
1,215,592
Messages
6,125,713
Members
449,253
Latest member
Mbogo

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