To insert the circle M symbol (Ⓜ) in VBA, you can use the Unicode character code &H24C2 with the ChrW() function. This method works in Excel, Word, or any Office application that supports VBA and displays Unicode characters correctly. The circle M symbol is useful for labeling, indicators, or UI elements where visual clarity matters more than text. No external tools or add-ins are needed—only basic VBA knowledge and a compatible font like Segoe UI Symbol or Arial Unicode MS.

What You'll Need

  • Microsoft Excel, Word, or another Office application with VBA support
  • Access to the VBA Editor (press Alt+F11)
  • A cell, text box, label, or message box where you want the symbol to appear
  • A font installed on your system that supports Unicode symbols (Segoe UI Symbol is recommended)

Step-by-Step

  1. Open the Office application where you want to insert the symbol (e.g., Excel or Word).
  2. Press Alt+F11 to open the Visual Basic for Applications (VBA) Editor.
  3. In the Project Explorer on the left, double-click the module where you want to add the code, or right-click your project, choose Insert > Module to create a new one.
  4. Clear any existing code in the module if needed, then type or paste the following line: Range("A1").Value = ChrW(&H24C2). This writes the circle M symbol to cell A1.
  5. If you're using a label on a UserForm, use: Label1.Caption = ChrW(&H24C2). Replace "Label1" with your actual label’s name.
  6. If you want to display it in a message box, use: MsgBox ChrW(&H24C2).
  7. Save your file as a macro-enabled workbook (.xlsm) if using Excel, or .docm if using Word.
  8. Run the code by pressing F5 while your cursor is inside the subroutine, or assign it to a button or shortcut.
  9. After running, check the target cell or control. If you see a question mark or empty space, proceed to the Troubleshooting section.
  10. To ensure the symbol displays correctly, select the cell or control and change its font to Segoe UI Symbol, Arial Unicode MS, or another Unicode-capable font via the Home tab or in code with Range("A1").Font.Name = "Segoe UI Symbol".

Common Mistakes

  • Using Chr() instead of ChrW(). Chr() only supports ASCII (0–255), but the circle M symbol is Unicode (U+24C2), requiring ChrW().
  • Using a font that doesn't support Unicode symbols. Default fonts like Calibri or Times New Roman may not render the symbol, showing a box or blank.
  • Typing the hex code incorrectly: &H24C2 is correct; &H24c2 (lowercase) also works, but &H24C3 or &H24B2 are different symbols.
  • Expecting the symbol to appear in a non-Unicode environment, such as older systems or plain text files.
  • Forgetting to save the file as macro-enabled, which causes the code to be lost when closing.

Tips

  • Use Debug.Print ChrW(&H24C2) in the Immediate Window (Ctrl+G) to test the symbol before placing it in a UI element.
  • If you're inserting the symbol repeatedly, define a constant: Const CIRCLE_M As String = ChrW(&H24C2) and use CIRCLE_M in your code.
  • Combine it with text: Range("A1").Value = "Status: " & ChrW(&H24C2) for clearer labeling.
  • Test font rendering on different machines—Segoe UI Symbol is standard on Windows 8+, but older systems may need Arial Unicode MS.
  • For dynamic placement, use a loop: For i = 1 To 10: Cells(i, 1).Value = ChrW(&H24C2): Next i to fill a column.
  • Always test your output on the target machine, especially if distributing the file to others.

Troubleshooting

  • Symbol shows as a square or question mark: Change the font of the target cell or control to Segoe UI Symbol or Arial Unicode MS. If you can't change it manually, add the font assignment in code: Range("A1").Font.Name = "Segoe UI Symbol".
  • Runtime error: Invalid procedure call or argument: You likely used Chr() instead of ChrW(). Replace Chr() with ChrW() and ensure the hex code is &H24C2.
  • No symbol appears after running code: Check if the target cell is protected or locked. Unprotect the sheet via Review > Unprotect Sheet if needed.
  • Code runs but symbol doesn't show in message box: Message boxes use system default fonts that may not render Unicode. Use a label on a UserForm instead for reliable display.
  • Symbol appears on one computer but not another: The other machine may lack a Unicode font. Install Segoe UI Symbol (usually preinstalled on Windows 8+) or Arial Unicode MS. If unavailable, consider using a different symbol like "(M)" as fallback.
  • Macro security blocks code execution: Go to File > Options > Trust Center > Trust Center Settings > Macro Settings and select "Enable all macros" temporarily for testing, or sign your macro with a certificate for production use.

Frequently Asked Questions

Can I use the circle M symbol in Excel without VBA?

Yes, you can copy and paste Ⓜ directly from a character map or web source into a cell. But VBA is needed for automation, dynamic generation, or batch insertion.

Is the circle M symbol available on Mac?

Yes, as long as you're using a recent version of Microsoft Office for Mac with a Unicode font like Helvetica or Arial Unicode MS. The same ChrW(&H24C2) code works.

What other Unicode symbols can I insert with ChrW()?

Many: ⓐ (U+24B6), Ⓑ (U+24B7), Ⓜ (U+24C2), Ⓡ (U+24C7), Ⓢ (U+24C8). Use the Unicode hex code in ChrW()—for example, ChrW(&H24B6) for ⓐ.

Can I use this symbol in Google Sheets with Apps Script?

Yes, but you must use String.fromCharCode(0x24C2) in Google Apps Script, not VBA. The Unicode value is the same, but the function differs.

Why does the symbol look different on some systems?

Font rendering varies. Segoe UI Symbol shows a clean, modern circle M. Older fonts like Arial may render it with thicker lines or different proportions. Always specify the font in code for consistency.

Is there a keyboard shortcut to type Ⓜ without VBA?

On Windows, press Alt+9794 on the numeric keypad. On Mac, use Option+24C2 if supported by the application. But for automation, VBA remains the most reliable method.