I'm working with code developed by another unknown person that gathers data with an HTML form embedded within a VBScript, validates the data, then closes the form once all data is valid. Here's the form part of the HTML code:
' Create IE object and set its appearance
Set objIESignon =...
I'm trying to locate an image (a company logo) within a Word doc so that it can be moved from its current position to a new one. I think I'm close, but the code below is not locating any images:
For Each p In objWrd.ActiveDocument.InlineShapes
sMyPar = p.Count
Next p
Any ideas on how I can...
UPDATE: I found some code on how to shift a block of text. Instead of using ".LeftIndent", this is what I used:
objWrd.ActiveDocument.Paragraphs(18).IndentCharWidth 1
This moved the lines of text (showing in the DOM as paragraphs) over to the right about 1.5 characters.
Sadly, the company security on my computer won't let me download the file.
I'm trying to figure out how to shift a block, or line, of text a few spaces to the right or to the left. I thought this would work, but it just removed the first word in the line of text...
I guess I've got a lot to learn. I've used constants for the FileSystemObject, and those were easy to find. I guess you need to know where/how to look.
I was able to decipher how to insert a bit of text within a space between two paragraphs and make the insertion invisible.
I used this to...
This is in relation to my previous post modifying and formatting microsoft word document.
I'm working on some code from another developer who is no longer with the company. He created a script to find text, use HomeKey and EndKey, and move things around. To learn more since I can't ask him...
Sorry, I meant what's already in the script...a better way of scripting the edits that what's already in the script.
For instance, the current script finds the home location (like pressing the Home key on your keyboard).
objWrd.Selection.HomeKey 6, 0
When I try looking for information so...
There are many templates they would have to update, so that's why they built the macro. Currently, it's not doing it right, so the users are manually making a copy of the original, editing how the third party requested, then sending it off. They want me to fix the script so that it does the...
Here's how I resolve issues like yours:
On Error Resume Next
[enter code here to get your subkey]
If Err.Number <> 0 Then ShowError("Key not found")
On Error goto 0
'-----------------------------------------------------
Sub ShowError(strMessage)
MsgBox strMessage & vbNewline &...
I have a project that was created by another developer and it's my task to fix it as it isn't working properly.
There are users running an application to process medical claims. If there's anything that doesn't seem right, they are to generate a correspondence letter requesting further...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.