What’s going on?
This error is normally encountered when attempting to open a filename that contains invalid characters or symbols.
Although this can happen with a variety of symbols, the most common cases we see are when a colon (:), pound sign or hashtag (#), question mark (?), or backslash (\) is being used in a paper’s file name.
What to do
If you encounter an error that reads, "Microsoft Visual Basic Run-time error '5152': This is not a valid file name," try closing PERRLA for Word and taking the following steps:
Rename the file
There are several ways to rename a file. The easiest way is by right-clicking on the file and selecting Rename. You can then type a new name for your file and press Enter to finish renaming it.
Re-import the file
- Ensure the renamed file is located in the My PERRLA Papers folder
This is the default folder for storing your PERRLA Papers. If you have changed the default folder, move it there instead.
- Restart PERRLA for Word
- Open the paper from the My PERRLA Papers tab
How to prevent this error in the future
Keeping punctuation and symbols out of your file names will prevent the '5152' error. Acceptable characters to use in filenames are the hyphen (-) and underscore (_).