View Single Post
 
Old 01-29-2023, 08:37 PM
shanshan89 shanshan89 is offline Windows 10 Office 2019
Novice
 
Join Date: Jul 2022
Posts: 17
shanshan89 is on a distinguished road
Smile Simple List + Conditional Dropdown List repeated in Multiple Tables

Dear all,

I would like to create 3 tables, each table containing 2 word dropdown lists "Category" and "Subcategory" (see attached dotm file "Category and Subcategory.dotm") imported from an excel (see attached excel file "Sample Question.xlsm"). "Subcategory" dropdown list is dependent on the "Category" dropdown list. For example, if the user selects "A" under "Category", he will only see options "A1", "A2", "A3", "A4" under the "Subcategory" dropdown list. If the user selects "B" under "Category", he will only see options "B1", "B2", "B3", "B4" etc.

All the values in the word dropdown list must be imported from the excel and not hardcoded within the word document.

In addition, if the user doesn't require all 3 tables, he can choose to delete 1 or 2 or 3 tables.

Appreciate if someone could assist on the VBA codes for this.

Thanks!
Attached Files
File Type: dotm Category and Subcategory.dotm (32.4 KB, 5 views)
File Type: xlsm Sample Question.xlsm (9.1 KB, 3 views)
Reply With Quote