use a macro for the measure button