Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taking data from excel and put it into word

Status
Not open for further replies.

kalle82

Technical User
Apr 2, 2009
163
SE
Hi!

I have made a userform in word.

It has one textbox(going to be filled with numbers) and one commandbutton.

When i press the commandbutton in my userform i want i to do the following.

1. Start up an excel file.
2. Take the data in the textbox and place it in the excel file´s cell b2.
3. Run the macro "fetchdata" in the excel file(already created) that fetches the data connected to the number.

-- When run cells c2,d2,e2 will be filled with data.

4. Take the data from the cell and place them in the bookmarks created in word.

Done!

Ive been told to use mailmerge? Can I do that?

Is there a tuturial for opening and running macros i other files? We are using medium macro security.

Happy for any thoughts about this..

//Carl
 
What have you tried and where in your code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top