Extracting data from word using VB

tp2468

New Member
Joined
Mar 5, 2009
Messages
45
Hi there,

I have created a survey form in a word documents using textboxs and checkboxs. I have created a macro to read the values but I do not know how to carry the variables across to excel so I can read write the results to the spreadsheet. How can I do this?

Thanks in advance

Tom
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

doofusboy

Well-known Member
Joined
Oct 14, 2003
Messages
1,325
One way to do it would be to have your same Word macro create an Excel workbook and insert the data or insert the data to an existing workbook.
 

tp2468

New Member
Joined
Mar 5, 2009
Messages
45
I already have an excel sheet setup, what I need to do is to be able to open this. I done this before, transfering between different excel books using Windows("Book2").Activate but this code will not work when ran from the word document.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,942
Messages
5,856,428
Members
431,813
Latest member
seconduser

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