View Single Post
 
Old 05-08-2014, 05:19 PM
Danilo Danilo is offline Windows 7 64bit Office 2013
Novice
 
Join Date: May 2014
Posts: 11
Danilo is on a distinguished road
Default

The "Object variable or With block variable not set" message is gone
I figured that the problem with the code failing to split longer paragraphs occurs only when I add asterisks i.e when I replace the original line with .InsertAfter "***" & vbCr & "***", otherwise it works just perfect as you said. I've tried setting different values and it works like a charm. It also works with the line with asterisks inserted only the macro needs to be run repeatedly to have the same result. Hope you fix this too macropod
Reply With Quote