I personally came to be believe most canned comments to be unhelpful.
If you bother commenting to a post, take the time and put the effort to write a comment that's specific, relevant and meaningful. You know, like the kind of effort we expect from users of the platform when they post questions or answers.
Commenting on bad content is not an obligation. If you do not have the time or the inclination to leave actually helpful feedback (as a comment), just leave it for someone else.
Having said that, what I find wrong with the two specific examples you bring forward:
I downvoted/VTC because no attempt was made and no research was done and a Minimal, Complete, Verifiable Example was not included
Comments should address the content, not the votes. Saying "I downvoted you for X and Y" is not better than posting comments saying "I upvoted you because of your very thorough explanation".
On top of that, a post with that many problems was much better closed and left alone. If you want to really help the user into editing into shape so it can be re-opened (unlikely as it seems considering all the grave fails you were listing in your comment), actually put in the time to help.
Otherwise, just let them read the on-hold message and the help-center. A lot of useful information there!
(And to further nitpick... you didn't vote on them, you voted on the post).
Hi, a search in StackoverFlow or Google may have given you How to delete multiple rows in Excel or Deleting Rows Based on Multiple Cell Values Using VBA in Excel
This one doesn't look particularly canned, but I guess that in the tags you frequent this issue might crop often enough to warrant a canned comment.
It is much better than the previous one, as it points the user to helpful content. (Though, I'm intrigued if voting to close as a dupe wouldn't be the better solution, but I haven't read any of the linked questions to know if it was a dupe or not).
Nevertheless, the reference to "a search in StackoverFlow or Google" does not seem helpful at all, and reminds me too much the old LMGTFY links (and you are not even showing what search terms would produce the results you are linking to, which might have been the user's original problem).
If you want to point users to useful URLs, just do so. Editorializing about "you should have searched before" is just pompous to my eyes, and not really helpful.