Hi All,
I have a series of cells that are populate by the same validation list using a drop down selection. The first option on the list is "Select Planned Course".
What I'm after is that these cells will go back to "Select Planned Course" if a user deletes their contents. i.e. a user chooses course 7, then deletes it, I need it to go back to "Select Planned Course", rather than being blank.
Is there a way I can do this via either refering to the validation option or by having a default in the code? (it doesnt matter if hard written in the code as it will not change).
The cells in question are on row 15 and go up to column I by standard, but the user has a button to add on another which can be used for as many times as needed, so realistically I need this to work on 15:15 or have a way of adding it to the "add course" code so it expands when the range does.
this is the add course code:
Many thanks for your suggestions.
Regards, Upex
I have a series of cells that are populate by the same validation list using a drop down selection. The first option on the list is "Select Planned Course".
What I'm after is that these cells will go back to "Select Planned Course" if a user deletes their contents. i.e. a user chooses course 7, then deletes it, I need it to go back to "Select Planned Course", rather than being blank.
Is there a way I can do this via either refering to the validation option or by having a default in the code? (it doesnt matter if hard written in the code as it will not change).
The cells in question are on row 15 and go up to column I by standard, but the user has a button to add on another which can be used for as many times as needed, so realistically I need this to work on 15:15 or have a way of adding it to the "add course" code so it expands when the range does.
this is the add course code:
Code:
Sub P1_AddPlanned()
Application.ScreenUpdating = False
With Sheets("forecast of 1st period")
With .Cells(15, .Columns.Count).End(xlToLeft).Resize(18)
.Copy .Offset(, 1)
On Error Resume Next
.Offset(, 1).SpecialCells(xlCellTypeConstants).ClearContents
.Offset(, 1).Cells(1).value = "Select Planned Course"
On Error GoTo 0
End With
End With
With Sheets("review of 1st period")
With .Cells(17, .Columns.Count).End(xlToLeft).Resize(29)
.Copy .Offset(, 1)
End With
End With
Application.ScreenUpdating = True
End Sub
Many thanks for your suggestions.
Regards, Upex