How to Remove Hidden Double Quotes in Excel VBA

Excel VBA (Visual Basic for Applications) is a powerful tool for automating tasks in Excel. One such task is removing hidden double quotes in cell text. These hidden quotes can cause errors or unexpected results in your calculations or functions. This tutorial will guide you on how to remove these hidden double quotes using Excel VBA.

Step 1: Enable Developer Tab

Firstly, you need to enable the Developer tab in your Excel. If your Developer tab is already available, you can skip this step and proceed to the next one. If it is not, go to File > Options > Customize Ribbon. Under Main Tabs, make sure that the Developer box is checked, then click OK.

Step 2: Open the Excel VBA Editor

Now that you have enabled the Developer tab, click on it and select Visual Basic to open the Excel VBA editor.

Step 3: Insert a New Module

After that, go to the Insert menu and choose Module to add a new module that will house your code.

Step 4: Write the VBA Code

Write your VBA code in the new module. With VBA, you can create a custom function that scans through each cell in a specified range to find and remove any hidden double quotes.

Step 5: Run the VBA Code

To run the VBA code, you can simply press F5 while in the VBA editor, or go to the Run menu and select Run Sub/UserForm.

Once the code has run, all hidden double quotes in the specified range will have been removed. This change is permanent and cannot be undone, so ensure that you want to remove these hidden quotes before running this code.


In conclusion, Excel VBA is a powerful tool that allows you to automate a wide range of tasks in Excel. By understanding how to use VBA to manipulate cell values, you can save a significant amount of time and avoid manual errors.

The aforementioned steps provide a reliable solution for removing hidden double quotes from your Excel cells using VBA that suits all levels of Excel users. Keep exploring more possibilities with Excel VBA to boost your productivity in Excel.

Tomasz Decker is an Excel specialist, skilled in data analysis and financial modeling.

Posted in vba