Ramsay was present at the battles of Steenkerque in 1692 and Landen, or Neerwinden in 1693, being promoted Major-General in March 1694. During the recapture of Namur in 1695, he led the attack on 3 July that captured the Heights of Bouge, with the assault force suffering over 4,000 casualties. After the Treaty of Ryswick in 1697, the regiment returned to England, before moving to Scotland in 1699.