The winner of the fifth round replay between Inverness Caledonian Thistle and Ross County will face a trip to Dundee United.
The fifth round replay will be played on Tuesday, February 19.
Ross County had to come from behind twice to force a replay. Aaron Doran gave Caley Thistle a 1-0 lead at half time. But Ross Stewart levelled in the 55th minute.
Brad McKay put Inverness back in front in the 66th minute before Josh Mullin grabbed a dramatic injury time equaliser.
Quarter final draw
Aberdeen v Kilmarnock or Rangers
Dundee United v Ross County or Inverness Caledonian Thistle
Partick Thistle v Hearts
Hibernian v Celtic
Ties to be played Saturday, March 2 and Sunday, March 3.