Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy the drop down list value and paste to next column
Dear all,
I made a label form by a drop down list via validation function in A1:A12 for the junior (source is in another sheet of the same workbook), once the user choose a value from the drop down list, I need the excel copy the current cell to next two columns in the same row. I also failed in using "Is Notempty" event in similar coding..... Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Not Intersect(Target, Me.Range("A1:A12")) Is Nothing Then With Target Me.Range.Copy Me.Range.Offset(0, 1).Paste End With End If Application.EnableEvents = True Best Regards, Norika Thanks to Bob Phillips give me many hints but I still failed to do so. :-( |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy the drop down list value and paste to next column
Hi Norika,
Try: Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo XIT Application.EnableEvents = False If Not Intersect(Target, Me.Range("A1:A12")) Is Nothing Then If Not IsEmpty(Target) Then With Target .Copy .Resize(1, 2).Offset(0, 1) = .Value End With End If End If XIT: Application.EnableEvents = True End Sub --- Regards, Norman "norika" wrote in message ... Dear all, I made a label form by a drop down list via validation function in A1:A12 for the junior (source is in another sheet of the same workbook), once the user choose a value from the drop down list, I need the excel copy the current cell to next two columns in the same row. I also failed in using "Is Notempty" event in similar coding..... Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Not Intersect(Target, Me.Range("A1:A12")) Is Nothing Then With Target Me.Range.Copy Me.Range.Offset(0, 1).Paste End With End If Application.EnableEvents = True Best Regards, Norika Thanks to Bob Phillips give me many hints but I still failed to do so. :-( |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I copy and paste a drop down list in excel? | Excel Worksheet Functions | |||
copy/paste drop down boxes (forms) without locking cell link? | Excel Discussion (Misc queries) | |||
Copy/Paste Drop Down List | Excel Worksheet Functions | |||
how do i copy drop down lists and paste them | Excel Discussion (Misc queries) | |||
Copy & Paste Drop Down Box with Macros | Excel Programming |