The Runtime Error 6 occurs in the Visual Basic program. It is an overflow issue that can occur when the Visual Basic program attempts to store too much data in the temporary folders area. Runtime files help Windows translate a program's language into Windows language so the program runs faster. You can get the Runtime Error 6 message for several reasons. One reason is that you are using a backslash instead of a forward slash in one of your calculations. Other reasons include an overloaded temporary folder, outdated software or a registry error.
Fix Registry and Clean Temp Folders
Download and install a registry cleaner program onto your computer. This software will automatically empty out temp folders and fix registry errors that cause programs to malfunction.
Close your browser windows and any other running program.
Open the registry cleaner program and direct it to scan and fix your Registry and clean out old folders. Wait for the program to scan your computer for errors and empty out old files.
Restart your computer.
Update Visual Basic Software
Go to the Visual Basic Updates page. This is where you can download and install new Visual Basic runtime files to fix the overflow problem.
Click on "Download" and save the file to a location on your computer. Wait for it to download.
Double-click on the file to install it automatically. Restart your computer when the installation is complete.
Check your Visual Basic calculations to make sure they fit within the range of the value.