Re: Copying Specific Columns Into A New Worksheet
uh, no... oh dear.
I mean, this part of the code:
Defines a constant to replace awkward ASCII characters with; this part of the code:
Code
vResult = Application.WorksheetFunction.Substitute(vResult, Chr(10), myReplaceWith)
vResult = Application.WorksheetFunction.Substitute(vResult, Chr(13), myReplaceWith)
Uses this value.
So if you change the line in question to:
Then the function will replace characters with space
This:
Would make the code functionally superb in every way.
HTH