Originally Posted by OldRope
Next time it would have been best to plan ahead, as trying to do things at the last minute, like buying miles or flying unplanned flights can be costly. But glad it worked out for you.
The OP said he found himself in "an emergency situation," which I could empathize with and understood to mean planning ahead was not possible.