If an underlying medical condition is contributing to the problem, that condition should be treated first. The excessive sweating is then treated with prescription antiperspirant and botulinum toxin injections.