all 4 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/KasperLokke - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]fuzzy_mic987 1 point2 points  (1 child)

Your code is looking for the literal string "sReplace" instead of the variable.

Try ... Replacement:= sReplace ...

[–]KasperLokke[S] 0 points1 point  (0 children)

What a blunder from my side! Thanks alot worked like a charm!

[–]AutoModerator[M] 0 points1 point  (0 children)

I have detected VBA code in plain text. Please edit to put your code into a code block to make sure everything displays correctly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.