Help with Arrays & Cascading Data

JenkinsM82

New Member
Joined
May 17, 2018
Messages
8
Hi Everyone! I'm looking for some help displaying some data from Excel into a Word UserForm using arrays but I'm having trouble wrapping my head around it.

The UserForm has the following controls:
  • A combobox called "StatementName"
  • 2 option buttons called "Singular" & "Plural"
  • A textbox called "Statement"
The data comes from Statements.xlsx has 1 sheet with 3 columns. Column A is the Statement Name. Column B is the statement in singular form. Column C is the statement in plural form.

When the form initializes, I want the data from Statement.xlsx to be loaded into an Array. When the combobox or optionboxes are changed, the textbox should update accordingly.

The last part is to allow the user to modify the textbox before clicking a submit button to insert the statement into the Word document.

Thanks in advance!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Watch MrExcel Video

Forum statistics

Threads
1,129,673
Messages
5,637,718
Members
416,981
Latest member
PLonchar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top