Toon posts:

[VBscript] Laden in actief venster

Pagina: 1
Acties:

Verwijderd

Topicstarter
Dag mensen! Onderstaand script laadt geheel naar wens een MS Word-document naar keuze. Nou is het echter zo dat dit script bij iedere aanroep een nieuw venster opent. Is het wellicht mogelijk ieder nieuw document in het actieve venster te openen, zodat er niet allemaal aparte word schermen worden geopend?
code:
1
2
3
4
5
6
7
function runWord(wordDoc)
   set wordApp = CreateObject("word.Application")
   wordApp.documents.Open("http://www.domein.nl/test/" + wordDoc + ".doc")
   wordApp.Visible=true
   wordApp.Activedocument.Variables("naam").Value="TheProspector"
   wordApp.Activedocument.fields.update
end function

  • curry684
  • Registratie: Juni 2000
  • Laatst online: 12-05 22:23

curry684

left part of the evil twins

Clientside -> Webdesign & Graphics

Professionele website nodig?