Hello All - First time Poster here, name is Tim.
I've been working on building an Excel document, when based on user input into a certain cell, prompts them for information and places received information in a cell. I have all that working to my liking, however, I'm getting stuck on a Run Tim Error 13 Type mismatch when I clear the multiple cell contents.
Again, my code works for all things input... however, when I highlight multiple cells and clear their contents, I receive the Run Time Error.
My Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim RequiredE As String
Dim RequiredH As String <-- Ignore this for this post, I have the same block of code below running against additional columns
Dim RequiredK As String <-- <-- Ignore this for this post, I have the same block of code below running against additional columns
If Target.Column = Columns("D").Column Then
Do
If Target.Value = "Yes" Then <-- Run Time Error debugger points me here
RequiredE = InputBox("Please enter IT User's name, who's responsible for sign off to PLIT Release Coordinator and click OK", "IT user name required!", Range("E" & Target.Row).Text)
Else
RequiredE = "Not Applicable"
End If
Range("E" & Target.Row) = RequiredE
Loop Until RequiredE <> ""
End If
I've been working on building an Excel document, when based on user input into a certain cell, prompts them for information and places received information in a cell. I have all that working to my liking, however, I'm getting stuck on a Run Tim Error 13 Type mismatch when I clear the multiple cell contents.
Again, my code works for all things input... however, when I highlight multiple cells and clear their contents, I receive the Run Time Error.
My Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim RequiredE As String
Dim RequiredH As String <-- Ignore this for this post, I have the same block of code below running against additional columns
Dim RequiredK As String <-- <-- Ignore this for this post, I have the same block of code below running against additional columns
If Target.Column = Columns("D").Column Then
Do
If Target.Value = "Yes" Then <-- Run Time Error debugger points me here
RequiredE = InputBox("Please enter IT User's name, who's responsible for sign off to PLIT Release Coordinator and click OK", "IT user name required!", Range("E" & Target.Row).Text)
Else
RequiredE = "Not Applicable"
End If
Range("E" & Target.Row) = RequiredE
Loop Until RequiredE <> ""
End If