Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-26-2011, 04:53 AM
OTPM OTPM is offline Integration of Word and Excel Windows 7 32bit Integration of Word and Excel Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi Stephen
Yes this is possible.
Firstly you need to write a Word Macro that opens an instance of Excel and the document that contains the data you want to read.
Once you have done that then to find the last row of data in an Excel sheet use this line of code:
LastRow = ActiveSheet.UsedRange.Rows.Count
You can then add the code to do your MailMerge.
Hope this helps.
Good luck.
Tony(OTPM)
Reply With Quote
 

Tags
automation, excel 2010, word 2010



Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration of Word and Excel Excel Link in word chandan56 Office 3 07-02-2015 07:07 PM
Integration of Word and Excel Excel Tables to MS Word ripcurlksm Word Tables 2 09-09-2011 04:59 AM
Integration of Word and Excel Word to Excel rynman Office 5 04-19-2009 06:50 AM
Integration of Word and Excel Excel to Word retrospect1984 Excel 1 02-18-2009 06:41 AM
Linking from Excel to Word streng Word 4 10-28-2008 08:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft