What is the difference between trim and trim$ in vba? Accidentally today when I used left and trim functions in vba, The compiler said cant f
trim accepts a variant as its parameter while trim$ accepts a string.
There are some performance benefits for using trim$ (since you aren't converting from a variant), but chances are you wouldn't notice them.
EDIT:
I figured this out by checking the object browser. When you are in the VBA editor, press F2 and you can search for functions and be come more familiar with the framework.