PDA

View Full Version : mousemove(drag and drop) for spreadsheet on vba userform



yousuf
10-12-2014, 07:01 AM
Hi Experts,

I have succeded in moving an image on vba userform. however, i am unble to do the same for spreadsheet as the mousemove option seems to be missing.

attaching my sheet for your reference.

Thanks

Jan Karel Pieterse
10-13-2014, 12:26 AM
Getting that to work on a spreadsheet would involve:
- Using a transparent ActiveX commandbutton on the sheet in question (Easy if it is a fixed worksheet, harder if it is on different sheets)
- Adding a bunch of API functions to do the complicated tranformation of mouse coordinates to the Excel grid coordinates
- Using the mousemove event of the commandbutton to drag the other objects around.

snb
10-13-2014, 01:33 AM
If you click the blue border of the spreadsheet you can drag it anywhere.