Created
July 21, 2018 21:56
-
-
Save ateneva/dd3ae671cea1c5bb21f7817aa4d2eb38 to your computer and use it in GitHub Desktop.
How do I quickly re-map values with VBA?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ReplaceConstantValues() | |
Dim Cell As Range | |
For Each Cell In ActiveSheet.Range("E2:E" & ActiveSheet.UsedRange.Rows.Count).SpecialCells(xlCellTypeVisible) | |
Cell.Replace " USA", "USA" | |
If Cell.Value = "Nederland" Then Cell.Value = "Netherlands" | |
If Cell.Value = "Luxemburg" Then Cell.Value = "Luxembourg" | |
Next Cell | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment