Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Open Word file by Macro

Hi,

I prepared a menubar, and I am unable to open all excel files by
macro.

I want to open Word Document by Excel Macro. how to open word file.

Regards.

Shahzad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Open Word file by Macro

try

Sub OpenDoc()
Dim WordApp As Object
Set WordApp = CreateObject("Word.Application")
WordApp.documents.Open "C:\test.doc" 'Change to suit
WordApp.Visible = True
End Sub

Mike

"Shazi" wrote:

Hi,

I prepared a menubar, and I am unable to open all excel files by
macro.

I want to open Word Document by Excel Macro. how to open word file.

Regards.

Shahzad

Reply
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
Open a file do a macro ( made) and open next succesive file SVTman74 Excel Programming 5 April 21st 06 10:14 PM
Using an Excel macro to open a Word File lhyer Excel Programming 4 July 18th 05 09:28 PM
open a word file from xl steve Excel Programming 3 May 4th 04 02:25 AM
open word file? pgoodale[_3_] Excel Programming 1 December 31st 03 01:15 PM
Graph Excel Selection, Open Word File, Embed Graph Into Word Steve Excel Programming 0 November 17th 03 05:35 PM


All times are GMT +1. The time now is 12:07 AM.

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

About Us

"It's about Microsoft Excel"