How Long Does it Take for Valacyclovir to Work? Valacyclovir is a medication commonly used to treat viral infections, particularly herpes simplex and herpes zoster (shingles). How Long Does it Take for Valacyclovir to Work? Valacyclovir is a medication commonly used to treat viral infections, particularly herpes simplex and herpes zoster (shingles).