That did it. I also added "Dim editor" at the top to resolve one other error but
it's working now.

One question - Is there a place (maybe under %APPDATA%) I can put this script
where it won't be affected by upgrades? There's no scripts folder by default
under my profile.

Thanks!

-- 
Retired ... finally!

<https://forum.pspad.com/read.php?2,77796,77823>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem