Data Validation with overwrite input box prompt

LORDMARKS

New Member
Joined
Jun 5, 2014
Messages
39
Hi All

I am not sure if this is possible, but thought I would ask.

On a large workbook I have a column with drop down data validation of "Job position" I would like a way of adding a "name" only if one "Job position" is selected. I am not sure what is the best way of approaching this, I looked at just adding a new column, but due to the number of sheets, calculations, and links to other files, it would be a massive job.

My thinking was to monitor cell via VBA somehow, then if value selected, provide input box and replace cell contents with the input box value?

Any suggestions would be greatly appreciated
<o:p></o:p>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
If anyone is interested, I found this online and adapted. Works perfectly

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "F21:F1001"
    On Error GoTo ws_exit
    Application.EnableEvents = False
    Application.ScreenUpdating = False
    
    If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
        With Target
        
            If Target = ("MAINTENANCE TECH") Then
            Imput = InputBox("PLEASE ENTER THE TECHNICIANS NAME")
            Target = ("TECHNICIAN ") & Imput
            If Imput = "" Then Target = ""
            Else
        End If
        End With
    End If
ws_exit:
    Application.EnableEvents = True
    Application.ScreenUpdating = True
End Sub

I would give credit, but i had that many trials on the go, I cant remeber where it came form. sorry
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

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