Drag frames

charly1

Board Regular
Joined
Jul 18, 2023
Messages
87
Office Version
  1. 365
Platform
  1. Windows
Hi excel pros

I have a user form with a couple of frame controls. I am trying to enable a mouse drag feature that would enable a user, to swap the positions of any two frames by dragging one of them and releasing it over the other. [In my specific case each frame in the user form is entirely filled with controls - not sure if that makes a difference].

I need this to work specifically for frame controls [not all the frames on my user form though], and to allow dragging only to swap positions between frames - like I said by dragging one over to the other.

I have been googling around for ages, and have seen various drag ideas but none for swapping positions.

If it can be done I would really appreciate any help that can be offered. [If it can't be done, I would also appreciate being told as much, so that i shouldn't waste any more time over it.

Thank You so much in advance
 

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
Hi excel pros

I have a user form with a couple of frame controls. I am trying to enable a mouse drag feature that would enable a user, to swap the positions of any two frames by dragging one of them and releasing it over the other. [In my specific case each frame in the user form is entirely filled with controls - not sure if that makes a difference].

I need this to work specifically for frame controls [not all the frames on my user form though], and to allow dragging only to swap positions between frames - like I said by dragging one over to the other.

I have been googling around for ages, and have seen various drag ideas but none for swapping positions.

If it can be done I would really appreciate any help that can be offered. [If it can't be done, I would also appreciate being told as much, so that i shouldn't waste any more time over it.

Thank You so much in advance
Why not just makeit simpe,and have a Command Button that has code that changes the position of the frames and controls? Keep it simple and move on to the more important tasks.
 
Upvote 0
Well there are many frames. I am assuming that it can be done somehow, and dragging would definitely be the most user-friendly way for it to be done. Your right there are more important tasks, and I don't expect the help, I would appreciate it though.
 
Upvote 0
Well there are many frames. I am assuming that it can be done somehow, and dragging would definitely be the most user-friendly way for it to be done. Your right there are more important tasks, and I don't expect the help, I would appreciate it though.
You could use a script to move the Frames.
Something like Frame1 .left=23
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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