LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Word VBA link to Excel

Glad to hear it worked for you.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Borg" wrote:
|
| Thank you sir,
|
| With your help, I played around with your VBA code and got it to do
| what I intended.
|
| Here is what I modified it to:
|
| Sub test()
| Dim filePath, oExcel, oSheet
| filePath = "C:\Documents and Settings\User\My Documents\Book1.xls"
| Set oExcel = CreateObject("Excel.Application")
| oExcel.Workbooks.Open (filePath)
| Set oSheet = oExcel.ActiveWorkbook.Worksheets(1)
| Selection = oSheet.Cells(1, 1)
| Selection.Copy
| Selection.Paste
| oExcel.DisplayAlerts = False
| oExcel.ActiveWorkbook.Close
| oExcel.Quit
| Set oSheet = Nothing
| Set oExcel = Nothing
|
| End Sub
|
|
| --
| Borg
| ------------------------------------------------------------------------
| Borg's Profile:
http://www.excelforum.com/member.php...o&userid=36396
| View this thread: http://www.excelforum.com/showthread...hreadid=561797
|


 
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
Excel link with Word gboll Excel Worksheet Functions 3 June 12th 08 06:48 AM
how to link excel to word Aurox47 Excel Discussion (Misc queries) 0 February 26th 08 10:12 AM
PASTE LINK option not available when I select PASTE SPECIAL to link an image in Excel to a Word document. tln Links and Linking in Excel 0 April 22nd 07 04:28 PM
Link table from excel to word using word VBA [email protected] Excel Discussion (Misc queries) 7 January 9th 07 05:57 PM
VB Help WORD/EXCEL LINK ChrisMattock Excel Discussion (Misc queries) 3 May 4th 06 05:41 AM


All times are GMT +1. The time now is 04:52 PM.

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"