ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   openning word (https://www.excelbanter.com/excel-programming/300273-openning-word.html)

anthony

openning word
 
Hi,

Is there any way to open a word file from excel?

Foss

openning word
 
Hi there,

How about this:

Sub OpenWord()
Shell "winword.exe", vbMaximizedFocus
End Sub

Cheers,
Foss

-----Original Message-----
Hi,

Is there any way to open a word file from excel?
.


AA2e72E[_2_]

openning word
 
Set objWd= CreateObject("Word.Application"
objWd.Open "fully qualified file name"
objWd.Visible = tru
set objWd = Nothin

Starts Word, opens a document and leaves it in the task bar for the use to use/close.

anthony

openning word
 
This works very well to open word, but is there any way
to open a specific word file, i just keep getting a
runtime 5 error.


-----Original Message-----
Hi there,

How about this:

Sub OpenWord()
Shell "winword.exe", vbMaximizedFocus
End Sub

Cheers,
Foss

-----Original Message-----
Hi,

Is there any way to open a word file from excel?
.

.


Foss

openning word
 
How about this one?

Sub OpenWord()
Shell "winword.exe " & Chr(34) & "C:\address.doc" & Chr
(34), vbMaximizedFocus
End Sub

This works for me..

Cheers,
Foss

-----Original Message-----
This works very well to open word, but is there any way
to open a specific word file, i just keep getting a
runtime 5 error.


-----Original Message-----
Hi there,

How about this:

Sub OpenWord()
Shell "winword.exe", vbMaximizedFocus
End Sub

Cheers,
Foss

-----Original Message-----
Hi,

Is there any way to open a word file from excel?
.

.

.


anthony

openning word
 
Works Perfectly, Thanks Foss.


-----Original Message-----
How about this one?

Sub OpenWord()
Shell "winword.exe " & Chr(34) & "C:\address.doc" & Chr
(34), vbMaximizedFocus
End Sub

This works for me..

Cheers,
Foss

-----Original Message-----
This works very well to open word, but is there any way
to open a specific word file, i just keep getting a
runtime 5 error.


-----Original Message-----
Hi there,

How about this:

Sub OpenWord()
Shell "winword.exe", vbMaximizedFocus
End Sub

Cheers,
Foss

-----Original Message-----
Hi,

Is there any way to open a word file from excel?
.

.

.

.


Foss

openning word
 
Glad to hear it

----- anthony wrote: ----

Works Perfectly, Thanks Foss


-----Original Message----
How about this one
Sub OpenWord(

Shell "winword.exe " & Chr(34) & "C:\address.doc" & Ch
(34), vbMaximizedFocu
End Su
This works for me.
Cheers

Fos
-----Original Message----

This works very well to open word, but is there any way
to open a specific word file, i just keep getting a
runtime 5 error
-----Original Message----
Hi there
How about this
Sub OpenWord(
Shell "winword.exe", vbMaximizedFocu
End Su
Cheers
Fos
-----Original Message----
Hi
Is there any way to open a word file from excel







All times are GMT +1. The time now is 04:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com