DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: Inserting HTML tags based off the different paragraphs in Word

However, when I compile the code, I get a Compile error: Can't find project or library with the Trim function highlighted. What am I missing here please?

Maybe the Trim is an ambiguity of the name, try to use Fully Qualified Name:

If Len(Trim(rngEach.text)) > 0 ThenIf Len(VBA.Trim(rngEach.text))

Top comments (0)