Controlling certain types of seizures in the treatment of epilepsy in patients who are unable to take the oral form of valproate. It may also be used for other conditions as determined by your doctor. Valproate is an anticonvulsant. It works by increasing a certain chemical in the brain.