Wishful Thinking
New Member
- Joined
- Dec 31, 2023
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
I added this to my worksheet (Sheet1 Checkbook Ledger) and it works if I'm inputting the text ("License") into the any cell in the "B" column.
Private Sub Worksheet_Change(ByVal Targe As Range)
If Not Range("B2:B1000").Find(What:="License", LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=True) Is Nothing Then
MsgBox "Two entries needed, one for tag payment and one for taxes."
End If
End Sub
I created a userform with comboboxes that list specific items (ie: "License") and again, the popup works. It also pop up on 5 of my other columns (C, D, E, and F) which is not what I want the pop up to do, I only want it to pop up when "License" is in any cell in column "B." It also pops up 7 times when using the userform before I can "X" it out and close it. That number is exactly the number of comboboxes and textboxes I have in the userform.
Here is a portion of my userform:
With cmbList_Transaction_Specific
.AddItem "Gas"
.AddItem "Transpo-Insur"
.AddItem "License"
.AddItem "Loan"
.AddItem "Transpo-Maint"
.AddItem "Transpo-Taxes"
So, I want any cell in column "B" that gets autofilled buy the userform with the text "LIcense" to give me only 1 pop up msgbox and not have to "X" it out 7 times before it closes or pop up on any other cell that is not in column "B".
Here's a pic of the actual spreadsheet columns.
Thank you for taking the time to review my question.
Private Sub Worksheet_Change(ByVal Targe As Range)
If Not Range("B2:B1000").Find(What:="License", LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=True) Is Nothing Then
MsgBox "Two entries needed, one for tag payment and one for taxes."
End If
End Sub
I created a userform with comboboxes that list specific items (ie: "License") and again, the popup works. It also pop up on 5 of my other columns (C, D, E, and F) which is not what I want the pop up to do, I only want it to pop up when "License" is in any cell in column "B." It also pops up 7 times when using the userform before I can "X" it out and close it. That number is exactly the number of comboboxes and textboxes I have in the userform.
Here is a portion of my userform:
With cmbList_Transaction_Specific
.AddItem "Gas"
.AddItem "Transpo-Insur"
.AddItem "License"
.AddItem "Loan"
.AddItem "Transpo-Maint"
.AddItem "Transpo-Taxes"
So, I want any cell in column "B" that gets autofilled buy the userform with the text "LIcense" to give me only 1 pop up msgbox and not have to "X" it out 7 times before it closes or pop up on any other cell that is not in column "B".
Here's a pic of the actual spreadsheet columns.
Thank you for taking the time to review my question.