So, I have this macro repeatedCharactersRemoved(string) which was crafted by Lupp
Function repeatedCharactersRemoved(pString As String) As String
Dim out As String, w_char As String
out = ""
Do While Len(pString)>0
w_char = Left(pString, 1)
pString = Join(Split(pString, w_char), "")
out = out & w_char
Loop
repeatedCharactersRemoved = out
End Function
Works a charm, but don’t wanna keep click-dragging it down the whole column. but, I wanna just put it in one cell with an array for its reference, and ctrl+shift+enter it to run the whole array. Doing that currently gets me
BASIC runtime error. Object variable not set.
I looked for but couldn’t find any tutorials on how to make a macro ‘array-friendly’. Is there one I missed?