Hi
I have a bit of code that monitors specific cells for changes, and if the entry of DF is entered, a form opens up for them to fill in some details.
I also have a button they can press that can set those cells to "N/A" if the data for the particular check they are doing isnt applicable
When I click the button to make all the cells required as N/A, including the cells being monitored for DF, I get a type mismatch error and the line of code below that include "DF" is highlighted. Available options for these cells are DF, NDF and N/A, why would i get the type mismatch error when the value of the cell is being set to N/A?
I have a bit of code that monitors specific cells for changes, and if the entry of DF is entered, a form opens up for them to fill in some details.
I also have a button they can press that can set those cells to "N/A" if the data for the particular check they are doing isnt applicable
When I click the button to make all the cells required as N/A, including the cells being monitored for DF, I get a type mismatch error and the line of code below that include "DF" is highlighted. Available options for these cells are DF, NDF and N/A, why would i get the type mismatch error when the value of the cell is being set to N/A?
VBA Code:
ElseIf Not Intersect(Target, Range("M43:M48, M51:M54, M56:m59")) Is Nothing Then
If Target.Value = "DF" Then
tyres.Show
End If