Jump to content
GSForum - Segélyvonal

Word dokumentum megnyitása, bezárása Excelbõl


saluton

Recommended Posts

saluton

Sziasztok!

Segítséget szeretnék kérni.

Egy word dokut szeretnék megnyitni excelbõl, majd nyomtatás után bezárni a word-ot.

Ez lehetséges?

Link to comment
Share on other sites

eremit

Az egész világot? Word és nem World!

Link to comment
Share on other sites

KeLa

Nem valószínû. Az Excel nem kezeli a doc fájlokat. Viszont az Excel mellet nyugodtan megnyithatod a Wordot is.

Link to comment
Share on other sites

Giraffe1

Ahogy Ady mondotta: Kód és dekód fia vagyok én :)

 

Egy VBA programba ezt kellene beírni, de elõtte a Tools :nyíl: References ablakban kipipálni a Microsoft Word 10.0 Object Library-t (a verzószám XP-re igaz, lehet, hogy nálad más).

 

Dim docWord As Word.Document
Set docWord = Word.Documents.Open("filename.doc")
docWord.PrintOut
docWord.Close False
Set docWord = Nothing

 

Ja, és a filename.doc, a dokumentum teljes elérési útja.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...