Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi, is there anyway that i could make a file open with microsoft word from
vba (excel), its a .out file, it could be opened by changing its properties (open with) to word, but could it be done through coding?, please help |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Something like
Dim oWordApp As Word.Application Dim oWordDoc As Word.Document Set oWordApp = New Word.Application oWordApp.Visible = True Set oWordDoc = oWordApp.Documents.Open(Filename:="filename") 'more code Set oWordDoc = Nothing oWordApp.Quit Set oWordApp = Nothing You will need to set a reference to the Microsoft Word library (ToolsReferences) -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Jason" wrote in message ... hi, is there anyway that i could make a file open with microsoft word from vba (excel), its a .out file, it could be opened by changing its properties (open with) to word, but could it be done through coding?, please help |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
cheers bob
"Bob Phillips" wrote: Something like Dim oWordApp As Word.Application Dim oWordDoc As Word.Document Set oWordApp = New Word.Application oWordApp.Visible = True Set oWordDoc = oWordApp.Documents.Open(Filename:="filename") 'more code Set oWordDoc = Nothing oWordApp.Quit Set oWordApp = Nothing You will need to set a reference to the Microsoft Word library (ToolsReferences) -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Jason" wrote in message ... hi, is there anyway that i could make a file open with microsoft word from vba (excel), its a .out file, it could be opened by changing its properties (open with) to word, but could it be done through coding?, please help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Connect document properties to headers and footers | Excel Discussion (Misc queries) | |||
Reference the document properties in a cell | Excel Worksheet Functions | |||
How to embed Word document into Excel and retain sizing, formatti. | Excel Discussion (Misc queries) | |||
Document Properties in Header or Footer | Excel Discussion (Misc queries) | |||
Excel document properties insert into a cell | Excel Discussion (Misc queries) |