VBA & Macro Problems

How to Build an Excel Spelling Bee Word Puzzle with WPS Office VBA

Kushani NimanthikaKushani Nimanthika Nov 13, 2026 869 views

Question details

The user wants to build an Excel-based Spelling Bee word puzzle workbook in WPS Office, including random letter generation, word validation against a dictionary, scoring, pangram bonuses, and offline practice.

How to Build an Excel Spelling Bee Word Puzzle with WPS Office VBA
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Creating a custom NYT-style Spelling Bee game for personal offline practice or puzzle sharing.
Observed behavior
The user needs a working VBA/macro solution for random game generation, word validation, scoring, pangram bonuses, and offline practice.
Before you start

Before you start, enable the Developer tab and macro support in WPS Spreadsheets, and prepare a word list or dictionary sheet such as a filtered CSV word list that the workbook can use for validation.

Solution 1Recommended

Create the Spelling Bee workbook with VBA macros in WPS Spreadsheets

Use this when you want a complete interactive puzzle workbook with random letter generation, dictionary validation, scoring, and pangram bonuses.

The VBA approach automates game setup and scoring. The accepted words and pangram results depend on the dictionary sheet you use, so a filtered word list helps keep the puzzle fair.

1
Enable the Developer tab and macro support

Open WPS Spreadsheets, go to Menu > Options > Customize Ribbon, enable Developer, and set macro security to allow trusted VBA projects.

2
Create the game and dictionary sheets

Rename Sheet1 to Game, create a Dictionary sheet, and paste a filtered word list with one valid word per row in column A.

3
Insert the VBA code

Press Alt+F11 to open the VBA editor, insert a new module, and add procedures for generating a random seven-letter set, checking center-letter usage, and looking up words in the Dictionary sheet.

4
Add scoring and pangram logic

In the code, award 1 point for 4-letter words, award length points for 5+ letter words, and add a 7-point bonus when the word contains all seven letters.

5
Run and test the puzzle

Switch back to the Game sheet, run the GenerateLetters macro, type test words, and verify that only valid dictionary words score and pangrams receive the bonus.

Create the Spelling Bee workbook with VBA macros in WPS Spreadsheets
Recommended for automatic scoring: VBA lets you recalculate scores and pangram bonuses immediately as each word is entered.

Build and Play Your Own Spelling Bee Puzzle in WPS Spreadsheets

Use WPS Office Spreadsheets and its VBA macro support to create an interactive Spelling Bee workbook with random letters, dictionary validation, scoring, and pangram bonuses. WPS also opens Excel macro-enabled workbooks, so you can reuse or adapt existing .xlsm files.

  1. 1. Download and install WPS Office: Go to the WPS Office download page, download the installer, and install WPS Spreadsheets on your computer.
  2. 2. Open or create a macro-enabled workbook: Open an existing Excel .xlsm Spelling Bee workbook or create a new workbook and save it as a WPS macro-enabled spreadsheet.
  3. 3. Enable the Developer tab: In WPS Spreadsheets, go to Menu > Options > Customize Ribbon and enable Developer, then allow macros from trusted files.
  4. 4. Paste the Spelling Bee VBA code: Press Alt+F11 to open the VBA editor, insert a module, and paste the game generation, validation, and scoring code.
  5. 5. Run the game and practice offline: Return to the worksheet, run the generate-letters macro, type words, and check the automatic score and pangram bonus.
Free Office suite with VBA macro support for interactive Excel puzzlesOpens and saves .xlsm workbooks so existing Spelling Bee files remain usableFamiliar spreadsheet interface for setting up dictionary and scoring sheetsWorks offline for personal Spelling Bee practice without an internet connection
microsoft office alternative - wps office

Frequently Asked Questions

Does WPS Spreadsheets support VBA macros for an Excel Spelling Bee game?

Yes. WPS Spreadsheets supports VBA macros. Enable the Developer tab and macro security, then open an existing .xlsm file or save your workbook as a macro-enabled spreadsheet before adding the game code.

Why does the Excel Spelling Bee word list differ from the New York Times answer list?

The New York Times uses a curated word list that is not publicly available. This workbook uses a filtered Collins Scrabble Word 2019 dictionary, so it may accept extra words or miss some official answers.

Can I use the Spelling Bee workbook offline?

Yes. Once the dictionary sheet and VBA code are saved in the workbook, random game generation, word validation, scoring, and pangram bonuses all run locally without an internet connection.

How do I make the pangram bonus work in Excel?

In the VBA scoring code, check whether the entered word contains all seven puzzle letters. If it does, add the pangram bonus to the normal word score; the standard bonus is 7 points.