I fitted the M32 6 speed box, but the F40 will be similar to install.
you need to find out if the F23 driveshaft CV splines fit the F40 gearbox, also if the clutch disc splines are the same
otherwise it's just a case of adjusting the linkage to fit the new selector, the vx220 F23 cables fitted the M32 box with some minor adjustements, you could use the M32 gear linkage from any astra H 6 speed car