Last active
April 15, 2018 10:21
Star
You must be signed in to star a gist
Enclose string in single quotes
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 EncloseinQuotes() | |
Dim Cell As Range | |
Dim IP As String | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, March 2017 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
With ActiveSheet | |
For Each Cell In Range("A2:A" & ActiveSheet.UsedRange.Rows.Count) | |
IP = Cell.Value | |
Cell.Value = "''" & IP & "'," | |
Next Cell | |
End With | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment