In the Filters Bar is 'Filters Off' selected? That would gray out the stars.
Here's a version of the longer macro that Enables Filters
if that isn't marked:
Filter by Rating.kmmacros (11.1 KB)
This works for me in the Library module when I select Previous Import.