Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 5 lip 2020 · I know how to get every paragraph in a word document. But I am looking for a way to loop through each word in a MS Word document. Sub Sample() Dim apara As Paragraph Dim lineText As String For ...

  2. 17 maj 2022 · You will need a nested loop to compare the word with each key in the collection, and then do stuff with it. It also might be a matter of putting this code in the Document_Open() event handler so that it runs when the document is opened.

  3. 21 cze 2011 · I want it to delete lines between basic style(text) but keep lines between heading 1 and basic style. Is there any way to do that? I have a doc and when run macro, deletes all lines empty, even those where are between heading 1 and main text, and produces a document in style of heading 1.

  4. 24 gru 2013 · If you know that all the pictures are in-line, then something like this will resize them: Sub ResizePhotos () Dim pic As InlineShape For Each pic In ActiveDocument.InlineShapes With pic .LockAspectRatio = msoTrue If .Width > .Height Then ' horizontal .Height = InchesToPoints (3.3) Else ' vertical .Width = InchesToPoints (3.3) End If End With N...

  5. 14 mar 2024 · This is a simple example of a Word VBA Macro. It performs the following tasks: Opens a Word Document; Writes to Document; Closes and Saves the Word Document.

  6. www.office-forums.com › threads › looping-through-pages-of-a-word-doc-with-vbaLooping Through Pages of a Word Doc With VBA

    5 mar 2008 · What I want to do is, given a document, to loop through it, find all the frames, and change their height. I can do this part. Here's the hard part though: I want to change the frame height to a different value if it's on a page with a heading. I also want the frame height value to be different depending on how many lines there are in the

  7. The ForNext statement provides a method for repeatedly looping through a block of code (that is, one or more lines of code). This loop is naturally referred to as a For loop. The basic syntax is: