control excel from word

bibra

New Member
Joined
Dec 17, 2007
Messages
48
I have my database in excel2007 and it has to be merged to word2007(i am
familiar with mailmerge)
how can i automate selection of a field (in excel) by pressing a button(or
macro) on the word document
example
when i press the button or run macro in word the following actions are
completed in one go
--a field in excel is selected(say COUNTRY)
--then in that field a particular sub-field is selected(SAY JAMAICA)
--the merge is completed in word docu
--blank rows in the word document get deleted
--the word print command pops up
similarly if i press another button or run another macro
i can select any other country say iran or india
or--another idea is that a list box popsup with all the names available
under the country field and i simply select a country and the sequence of
merge and print starts
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,472
Messages
6,125,004
Members
449,203
Latest member
Daymo66

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