Search the Community
Showing results for tags 'Microsoft-word'.
-
hello dears I have a problem with my word document! shows error: cannot open the file because of content error! solutions done: 1. change .docx to doc 2. open by wordpad.exe 3. upload to google drive and try to open 4. change .docx to .zip and try to open document.xml but error in opening/extracting. So I wand to know that is there any solution to fix document.xml file?
-
Okay, I've searched and searched and am hoping someone here can help me out. I've been trying to get a VBScript program to open a word document, search for a specific char and replace it with a Addin field (i.e. { SEQ @ } ) Here's what I have thus far: Const wdReplaceAll = 2 Set objWord = CreateObject("Word.Application")objWord.Visible = TrueSet ObjDoc = objWord.Documents.Open("C:\path\to\.doc")Set objSelection = objWord.Selection With objSelectionobjSelection.Find.Text = "@"objSelection.Find.Forward = TrueobjSelection.MatchWholeWord = TrueobjSelection.Find.Replace.Text = "replacement text"objSelection.Find.Execute ,,,,,,,,,,wdReplaceAll .Fields.Add .Range, -1, "SEQ @", True End With objDoc.SaveobjWord.Quit This code works for "Find/Replace" but does not work for fields.Much help would be awesome! Thanks! Edit, 27 Fed 13 (10:21 CST): In red/strikthrough is removed, plain red is added.
- 3 replies
-
- vbscript
- Microsoft-word
-
(and 2 more)
Tagged with: