LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Call an Excel macro from Word with data

I'm using Excel 2003 and Word 2003.

The text at the end of this post was related to an earlier question I asked
of this group that you answered fully. Thanks.

Now, I need to call that Excel macro from Word.
I will receive Word documents that contain player stats including last name
and team name. I will select last name and copy it to the clipboard and then
copy the player's team name to the clipboard.

What I would like to do then is to create a Word macro to:
1. Retrieve the last two items placed in the clipboard and pass that data
to an Excel workbook containing sheet 1 as (Lastname,Tname) . These two
items will replace the InputBox statement in the Excel macro.
2. Return to Word so the user can select and copy the next player and run
the Word macro again.

The solution below used Fname and Lname separed by commas. I really only
need Lname.
Thanks,
Jack

__________________________________________________ __________________
Hello All: I have an Excel 2003 spreadsheet that looks like this:
A B C
1 Lastname Firstname Col1 Col2 Col3 €¦ Col111
2 Lname 1 Fname1 FZN
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using excel data for a word macro Ann Excel Discussion (Misc queries) 1 May 29th 08 10:04 PM
Excel Macro call Word Macro with Parameters Bill Sturdevant[_2_] Excel Programming 9 May 24th 07 12:21 AM
Create merge source in Excel, call Word to generate labels Bill G[_4_] Excel Programming 1 October 3rd 06 07:20 AM
q. Using a macro to transfer data from Excel to Word David Excel Programming 2 August 20th 04 08:36 PM
q Using a macro to paste data from Excel to Word David Excel Programming 0 August 19th 04 04:00 PM


All times are GMT +1. The time now is 08:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"