KellyTheKid
New Member
- Joined
- Mar 7, 2021
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hi, I am new to VBA and I have been learning from google and these forums. I am stuck on a problem and I have no clue how to address it; I am hoping someone could help me.
I Have a named Table "Log" and two columns in question; Column "Site" (Column Q) and Column "Country" (Column T). Column "Site" has a validation of five values (DEUBAR,DEUBER,DEUSAL,FRAPAR,FRALAD). These are country and location codes. I would like to update Column "Country" when the user changes the value of any cell in Column "Site" with the first three characters of the value (either DEU or FRA). My table will continue to grow so I need this code to apply to each new added row. I have been playing with the Worksheet_Change(ByVal Target As Range) sub, but I am so lost. Any assistance will be much appreciated.
I Have a named Table "Log" and two columns in question; Column "Site" (Column Q) and Column "Country" (Column T). Column "Site" has a validation of five values (DEUBAR,DEUBER,DEUSAL,FRAPAR,FRALAD). These are country and location codes. I would like to update Column "Country" when the user changes the value of any cell in Column "Site" with the first three characters of the value (either DEU or FRA). My table will continue to grow so I need this code to apply to each new added row. I have been playing with the Worksheet_Change(ByVal Target As Range) sub, but I am so lost. Any assistance will be much appreciated.