Magic Wand selection over multiple layers

How do you select with magic wand so that all stacked layers are taken into account as if merged? I can only make magic wand to select from the current layer.