Jump to content

oxb

Member
  • Posts

    29
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Netherlands

Everything posted by oxb

  1. Thanx for the info, like i said big noob when it comes to coding. Mail merge never heard of will look into that and will try the code from gunsmokingman (first see if i can understand what the code does . First question how do i pass the userinput in the code gunsmokingman provided to the vba script? Again noob question. If possible would one of you edit the code i already have so that the user input is passed to the vba? script. Thanx again for your time and help.
  2. I want the offerte_example.doc copied to factuur_example.doc Then i want to edit some standard text thats always present in offerte_example.doc wich is now filled in with the users text (wich wil stay there) As offerte_example.doc is copied to factuur_example.doc this wil be a exact copy But a few standard lines need to be changed. Dont know how to put it in better words. I found a script that will change the lines of text, but as i dont know how the user will name the file i dont know how to pass the filename to the script. The file also needs to be copied as its a file with cel en table`s dos wont do the trick. The file below does not copy, i need copy and replace i will post the script below Const wdReplaceAll = 2 Set oWord = CreateObject("Word.Application") oWord.Visible = False set oDoc = oWord.Documents.Open("dont know what to put here") With oWord.Selection .Find.Text = "Offerte:" .Find.Replacement.Text = "factuur:" .Find.Forward = True .Find.MatchWholeWord = True .Find.Execute ,,,,,,,,,,wdReplaceAll .Find.Text = "Na eventuele accordatie stellen wij betaling per pin op prijs." .Find.Replacement.Text = "Wij danken u voor uw opdracht, graag betaling via PIN" .Find.Forward = True .Find.MatchWholeWord = True .Find.Execute ,,,,,,,,,,wdReplaceAll End With oDoc.Save oDoc.Close oWord.Quit
  3. Hi all For my business i need a script to change certain text in a word .doc In my own way i have made a small batch script that uses user input to make a directory and .doc filename with the name the user gave. I have got a office.document that is copied over with the name the user gave in the folder the user specified. (this document is always the same is copied over with name user gave) after creation the document is opened so the user can fill in the document. After creation of the document offerte_example.doc i need the script to find the offerte_example.doc file (only .doc file in folder) take its name en copie to factuur_example.doc, (offerte_example.doc needs to stay!) after that change some text to another part of text. (text is always the same only needs to be changed to different text) The script itself wil be in the same folder as the example.doc file. Hope i made myself clear what i want . I am not a coder so please be patient. Youre help is greatly appriciated. Thanx in advance.
  4. After 10 times of installing/de-installing i got sick and tired of it and i finilly found out that this works for me CODE setup.exe PIDKEY=your product code here, like this PIDKEY=12345678901234567890 the only thing is that officeXP completely installs,However you can use the TRANSFORMS= option after PIDKEY=12345.... havent treid this yet because im happy it finilly installs
×
×
  • Create New...