Ammonia forms the complex CuNH342+ with copper ions in alkaline solution but not in acid solution. The reason for it is:
in alkaline solution Cu(OH)2 is precipitated which is soluble in excess of alkali
in acidic solution protons coordinates with ammonia molecule forming NH4+ ions and NH3 molecules are not available.
copper hydroxide is amphoteric
in acidic solution hydration protects Cu2+ ions
It is a reason for given fact.