Restore Visual Basic Editor Panes and Use Straight Quotes in VBA
Question details
Restore missing standard panes in the Visual Basic Editor and use quotation marks that VBA recognizes in code.

- Product
- Visual Basic for Applications (VBA) Editor
- Device & OS
- not provided
- Scenario
- The Visual Basic Editor layout has changed, and the user needs to bring back the Project Explorer and Properties Window while writing or editing VBA code.
- Observed behavior
- The usual VBA editor panes are no longer visible, and curly or smart quotation marks may cause code syntax errors.
Open the VBA project in the Visual Basic Editor before changing the layout. When pasting code from a website or document, check that quotation marks have not been automatically converted to smart quotes.
Restore the Project Explorer and Properties Window in the Visual Basic Editor
Use this method when the standard VBA project and object-property panes are missing after the editor layout was changed.
The Project Explorer lists open VBA projects, modules, forms, and worksheets. The Properties Window displays settings for the currently selected object.
In the Office app, open the Developer tab and select Visual Basic, or press Alt+F11.
In the Visual Basic Editor menu bar, select View > Project Explorer. You can also press Ctrl+R.
Select View > Properties Window. You can also press F4.
Drag the title bar of Project Explorer or Properties Window to the left or right edge of the editor until a docking outline appears, then release it.

Replace smart quotation marks with straight quotation marks in VBA code
Use this method when pasted VBA code shows a syntax error or fails because it contains curly quotation marks.
Edit VBA Macros and Correct Quote Characters in WPS Spreadsheets
WPS Spreadsheets provides a familiar desktop workspace for opening macro-enabled workbooks, reviewing VBA code, and correcting invalid smart quotation marks. Use the Developer tools to access macro features and keep compatible workbook formats during migration.
- 1. Open the macro-enabled workbook: In WPS Spreadsheets, select Menu > Open and choose the .xlsm workbook you want to review.
- 2. Enable the Developer tools: Open the Developer tab in the ribbon to access macro and Visual Basic-related commands.
- 3. Open the macro editor: On the Developer tab, select Visual Basic or Macros, then choose the macro or module you need to edit.
- 4. Correct quotation marks in code: In the code editor, replace curly quotes copied from formatted text with straight double quotation marks (").
- 5. Save in a macro-enabled format: Select Menu > Save As and choose Excel Macro-Enabled Workbook (*.xlsm) to preserve the workbook's macro format.

Frequently Asked Questions
How do I bring back the Project Explorer in the VBA editor?
Open the Visual Basic Editor with Alt+F11, then select View > Project Explorer. You can also use the Ctrl+R shortcut.
Where is the Properties Window in Visual Basic Editor?
In the Visual Basic Editor, select View > Properties Window or press F4. Select a form, control, worksheet object, or module to view its available properties.
Why does VBA reject curly quotation marks?
Curly or smart quotes are typographic characters intended for formatted writing. VBA only recognizes straight double quotation marks (") as string delimiters in code.
How do I put quotation marks inside a VBA text string?
Enter two straight double quotation marks for each quote you want to display. For example, MsgBox "He said ""Hello""." displays quotation marks around Hello.




