Originally Posted by
sugr74
I will try tomorrow, so the code is correct then?
It looks ok to me !
Once you have renamed the module you can test it really easily in the immediate window (Press ctrl + g in the vba window to make it visible)
Type the following in and press return
Code:
? canshrinklines("Big Town Industries",Null,"","Diagone Alley",Null,"Smallville")
And you should get
Code:
? canshrinklines("Big Town Industries",Null,"","Diagone Alley",Null,"Smallville")
Big Town Industries
Diagone Alley
Smallville
Which as you can see has no blank lines with either a null value or empty string "" passed in as values.
The ? means print the result so
?date()
09/11/2018