vbanewbie68
Board Regular
- Joined
- Oct 16, 2021
- Messages
- 171
- Office Version
- 365
- Platform
- Windows
- MacOS
Dear Sir or Madam
Please see below my screenshot and my vba lines. The Gift Appeal ID list must have 3 codes like this 22UN01,22UN03 AND 22UN02 only. If new code comes in such as 22CO06 for example then it should not be allowed to join the list of Gift Appeal ID. It converts to blank instead. Please help to create VBA codes to create a blank if a new Appeal code comes in.
VBA Codes
If (Cells(x, DonationClassification)) = "inmemory" Then
Imprt.Cells(x, GiftAppeal).Value = "22UN02"
ElseIf (Cells(x, DonationClassification)) = "incelebration" Then
Imprt.Cells(x, GiftAppeal).Value = "22UN03"
Else
Imprt.Cells(x, GiftAppeal).Value = "22UN01"
End If
Thank you in advance for your help
Regards
V
Please see below my screenshot and my vba lines. The Gift Appeal ID list must have 3 codes like this 22UN01,22UN03 AND 22UN02 only. If new code comes in such as 22CO06 for example then it should not be allowed to join the list of Gift Appeal ID. It converts to blank instead. Please help to create VBA codes to create a blank if a new Appeal code comes in.
VBA Codes
If (Cells(x, DonationClassification)) = "inmemory" Then
Imprt.Cells(x, GiftAppeal).Value = "22UN02"
ElseIf (Cells(x, DonationClassification)) = "incelebration" Then
Imprt.Cells(x, GiftAppeal).Value = "22UN03"
Else
Imprt.Cells(x, GiftAppeal).Value = "22UN01"
End If
Thank you in advance for your help
Regards
V