Thanks for this. We add hundreds of products on a daily basis. It is all automised (mostly). We need a special macro to run on all 5 sites that only goes and untick "Uncategorized" after we selected a category.
Your simple plugin solved that, and goodbye to the macro.