I have this in excel as a VBA , however it wont work unless the field is manually keyed , ideally I want a drop box with Yes , No , Unsure . can this be done ? or does the cell have to be a text ? I am just learning with these so need a hand..Thanks Jo
Private Sub Worksheet_Change_A(ByVal Target As Range)
Dim xCell As Range, Rg As Range
On Error Resume Next
Set Rg = Application.Intersect(Target, Range("D19"))
If Not Rg Is Nothing Then
For Each xCell In Rg
If xCell.Value = "YES" Then
MsgBox "If yes enter credit note # to Cell G19", vbInformation, "Kutools for Excel"
Drop down boxes placed onto a spreadsheet does not function well. It will not move with the cells, and is cumbersome to deploy.
Now, what you can do, is make a dialog box, that will place a selection value into the ACTIVE CELL. So, lets say, you select the cell you want to place the YES/NO/MAYBE, and hit CNTRL-ALT-Q (as an example). Then that key combo will provide a dialog to select. Once you make the selection, it places the selection into the cell that was clicked (and made active) prior to the key-stroke.