A "form" to drag/drop a list of items into a priority list

dmj120

Active Member
Joined
Jan 5, 2010
Messages
310
Office Version
  1. 365
  2. 2019
  3. 2010
Is there a way to have a the list in E4:E13 be able to drab and drop each into C4:C13; and even rearrange after?

So if I wanted to put "PM Required" (E4) as item l.5 (C8), I can simply drag it over.

Book3
ABCDEF
1
2Priority hi/lo
3ItemDrag ItemItem Name
4I.1PM Required
5I.2Needs PM parts
6I.3AEM Candidate (NoSM)
7I.4Service Delivery (Self-perform, VSC)
8I.5DM Labor
9I.6DM Parts
10I.7SM Labor
11I.8SM Parts
12I.9Model DM hrs with Device max/min
13I.10Model SM hrs with Device max/min
14
Sheet1
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
this may work for you.

double click the item in column e and pit will remove it a copy to the click board,
then click in column c and it will paste it in.

VBA Code:
Dim cpyValue As Variant
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Not Intersect(Target, Range("E4:E13")) Is Nothing Then
        cpyValue = Target.Value
        Cancel = True
        Target.ClearContents
    End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Not IsEmpty(cpyValue) And Not Intersect(Target, Range("C4:C13")) Is Nothing Then
        Target.Value = cpyValue
        copiedValue = Empty
    End If
End Sub
 
Upvote 1
Solution
FIxed a typo

VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Not IsEmpty(cpyValue) And Not Intersect(Target, Range("C4:C13")) Is Nothing Then
        Target.Value = cpyValue
        cpyValue = Empty
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,833
Messages
6,181,242
Members
453,026
Latest member
cknader

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