Most armrests on office chairs are attached with screws. If your armrest is loose, turn the chair over and look for any screws and use a screwdriver to tighten them.