Answer:
Whenever someone from outside the office, man or woman, enters the room and it appears that people will be introduced to that person, the men and women in the office should stand out of respect. Similarly in a home, everyone should stand when a new guest arrives. Here is a case where preferential treatment should not be given to women only, but to any guest.