Excel To Work (Loop Through A List Of References)

Chubski

New Member
Joined
Apr 25, 2011
Messages
11
Hello,

First post so please be gentle.

I have looked through the various other posts on this topic and can't find something that will work for what I am looking to achieve in copying data from Excel to Word.

Within a Excel file a number of UserForms allow the individual to make various selections of standard wording by selecting a CheckBox. Ultimately, following a sort a removal of entries not selected I have a worksheet called "Menu" which contains all the components that the user has selected to be copied into a new Word document.

Also contained within the Excel file is a worksheet called "Text" which contains the standard wording to be copied over. For now I'm ignoring some other elements where the user can also type into the UserForm and this data would also be copied over.

In Summary:

1) Excel macro that will start at the top of a column on the worksheet "Menu" and go through it until it hits END at the bottom. This list can change from user to user so I presume I would need to build the macro for all possible selections albeit they are ignored if not present in the final list.

2) From the first selection in "Menu" a Word Document is to be opened and the text that relates to that selection is copied into the Word document. After being pasted the cursor is moved down one line.

3) Excel goes back to the "Menu" and shifts down one line to the next selection and depending upon what it is goes and copies the text relating to that selection and pastes it into Word on the next line. Again, cursor moves down one line.

4) Having gone through the "Menu" list and reached END in the column the Excel document closes leaving just the Word document open.

I would really appreciate any assistance with this question. The examples I've seen only really relate to one specific range and don't make any attempt at a second element to be copied from Excel and certainly nothing seen where the range selected is based upon criteria.

Here's hoping there is someone out there who can help me crack this.

Regards

Chubski
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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
Back
Top