Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lpeder6

    How to reset the value of a hidden HTML element

    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 =...
  2. lpeder6

    moving an image within a Word document

    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...
  3. lpeder6

    How to determine the value of Microsoft Word 2010 constants

    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.
  4. lpeder6

    How to determine the value of Microsoft Word 2010 constants

    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...
  5. lpeder6

    How to determine the value of Microsoft Word 2010 constants

    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...
  6. lpeder6

    How to determine the value of Microsoft Word 2010 constants

    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...
  7. lpeder6

    modifying and formatting microsoft word document

    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...
  8. lpeder6

    modifying and formatting microsoft word document

    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...
  9. lpeder6

    Vbscript registry

    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 &...
  10. lpeder6

    modifying and formatting microsoft word document

    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...

Part and Inventory Search

Back
Top