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
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,418
Messages
5,596,024
Members
414,037
Latest member
Roamingsmile

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