Rotherham had enough chances in the first half to have had the game won, but a string of good saves by Barry Roche kept them at bay.
As early as the first minute Grabban whipped in a cross, but Danny Schofield could not apply the finishing touch and he was denied by Roche's finger-tip save with a quarter of an hour gone.
But in the 21st minute Grabban picked up the ball just outside the area, moved forward and fired home a drive struck so hard it brought loose the netting in the bottom corner..
Saves by Roche from Ben Pringle, Grabban and Gareth Evans kept Morecambe in the hunt and in the 39th minute a quick break brought them an equaliser. Rotherham missed two chances to clear and Jordan Burrow fired home.
It took the Millers three minutes of the second half to restore their advantage. Gareth Evans beat his marker down the left and although his cross was headed clear the ball went straight to Jason Taylor who fired home from the edge of the box.
Rotherham were made to pay for their missed chances when Morecambe equalised from the penalty spot after 74 minutes. Ryan Cresswell was sent off for his second yellow card following a foul on Danny Carlton and Jack Redshaw scored from the spot.
But the hosts came back to win when Grabban netted his second of the afternoon with a left footed wonder drive from 30 yards out in added time.
Source: PA