Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Drag and Drop in user forms

I use userforms for data entry and data editing.

Is it possible to drag and drop text around in a userform?

My userforms allow me to select text but i cant move it to another adjacent
cell by dragging it.

Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Drag and Drop in user forms

I think this is what you want. I assume you want to move text from one text
box to the next on a Userform. Select the text in the textbox then hit Ctrl
C to copy it, then select another textbox and hit Ctrl V to paste it.

Is this what you wanted?
--
Cheers,
Ryan


"Roger on Excel" wrote:

I use userforms for data entry and data editing.

Is it possible to drag and drop text around in a userform?

My userforms allow me to select text but i cant move it to another adjacent
cell by dragging it.

Can anyone help?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Drag and Drop in user forms

TextBox1.DragBehavior = fmDragBehaviorEnabled

Where/when you want to enable drag/drop is up to you, maybe at design time,
the form's initialize event, or perhaps the textbox's mousedown event if say
right button pressed. Then you might want to disable. Note if you allow drag
with the left button onto a cell you will "move" the text. You might first
need to put the text in the DataObject so you can restore it to the textbox
if necessary. With right drag a popup should appear on drop.

Also of course you'll need to show the form modeless if you want to drag
into a cell.

Regards,
Peter T


"Roger on Excel" wrote in message
...
I use userforms for data entry and data editing.

Is it possible to drag and drop text around in a userform?

My userforms allow me to select text but i cant move it to another
adjacent
cell by dragging it.

Can anyone help?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Drag and Drop in user forms

Thanks Peter

This is just what i was looking for

All the best,

Roger



"Peter T" wrote:

TextBox1.DragBehavior = fmDragBehaviorEnabled

Where/when you want to enable drag/drop is up to you, maybe at design time,
the form's initialize event, or perhaps the textbox's mousedown event if say
right button pressed. Then you might want to disable. Note if you allow drag
with the left button onto a cell you will "move" the text. You might first
need to put the text in the DataObject so you can restore it to the textbox
if necessary. With right drag a popup should appear on drop.

Also of course you'll need to show the form modeless if you want to drag
into a cell.

Regards,
Peter T


"Roger on Excel" wrote in message
...
I use userforms for data entry and data editing.

Is it possible to drag and drop text around in a userform?

My userforms allow me to select text but i cant move it to another
adjacent
cell by dragging it.

Can anyone help?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Archiving user selection from Drop Down (forms - combo box) Meg Excel Discussion (Misc queries) 1 July 31st 08 02:53 PM
Drag and Drop Drag and Drop Excel Programming 2 January 13th 07 07:11 PM
Drag and Drop Drag and Drop[_2_] Excel Programming 0 August 3rd 06 10:33 AM
Identify when a user attempts to turn on "Allow cell drag and drop" Alan Excel Programming 9 November 21st 04 09:09 PM
Prevent user to drag and drop CVincent Excel Programming 2 April 5th 04 07:02 PM


All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"