Switch open=> no current flow. Hence no pd across the 40 ohms resistor. Thats is to say the right side of the voltmeter can be taken to be connected to the -ve terminal of battery and the left side of the voltmeter is connected to the ve terminal of batt.