Breastfeeding to Formula

Has anybody had to make a switch from breastfeeding to formula? Or atleast had to supplement? I’m afraid I won’t be able to make enough for when I go back to work. Plus she’s starting to have problems with latching. Any recommendations on formula? I want the closest to breastmilk I can get!