Answer by
manoj82 (9)
We can remove spaces in a VBA procedure by using the RemoveSpaces function. This function can be used in an excel worksheet to remove spaces. For example while writing an email address there should not be any spaces between the address. The function takes one argument that is the input string. The function has to be written in the query statement in excel.