Have you tried clearing the ECM of the code first? It should have reset itself if you have been driving it for awhile anyway. The VSS isn't usually a trouble prone part. Code 24 usually sets from reving the engine in neutral or park or because the speedo is broken.