If you need a visa to visit Sweden it is good to apply on time, it could take more than two weeks to get your visa and even more, if you apply through a non-Swedish embassy/consulate such as another Schengen country.
In the links you will find more information on travelling and visiting Sweden.
https://www.swedenabroad.se/en/
https://www.schengenvisainfo.com/
Through this link you can proceed your online application for a Swedish visa.
Visit Sweden for less than 90 days – apply for a visa – Migrationsverket
