Hi JimmyG
Try this Code in the attached
Option Explicit
Private Sub Workbook_Open()
'set protection using UserInterface to allow macros to work
With Sheets("Sheet1")
.Protect _
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True, _
UserInterfaceOnly:=True
.EnableSelection = xlUnlockedCells
End With
End Sub
and
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range
Dim NR As Long
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
If Target.Address = "$C$4" Then
For Each cel In Range("B3:F3")
If cel.Value = "" Then
MsgBox "Missing Data"
Range(cel.Address).Activate
Application.EnableEvents = False
Range("C4").Value = ""
Application.EnableEvents = True
Exit Sub
End If
Next cel
Select Case Target.Value
Case "General"
With Range("General")
NR = .Cells.Find("*", .Cells(.Rows.Count, .Columns.Count), SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row + 1
Application.EnableEvents = False
Cells(NR, "B").Resize(1, 5).Value = Range("B3").Resize(1, 5).Value
Application.EnableEvents = True
End With
Case "Specialist"
With Range("Specialist")
NR = .Cells.Find("*", .Cells(.Rows.Count, .Columns.Count), SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row + 1
Application.EnableEvents = False
Cells(NR, "B").Resize(1, 5).Value = Range("B3").Resize(1, 5).Value
Application.EnableEvents = True
End With
End Select
End If
End Sub
Please notice the Named Ranges "General" and "Specialist"
The Code assumes this as "Yes"
Will you ALWAYS have ONLY 10 Items under General and under Specialist
Bookmarks