in
All Tags » word » vba (RSS)

Browse by Tags

  • Change the line width of a line in Word

    I am using the next code to itentify a line on a template and change the height: I can set the height, top and left properties but not the width. What hapeens when i set the width is that the line becomes diagonal. First its a line like | but after setting the width it looks like \ How is this possible...
    Posted to Word (Forum) by microsoft on 03-17-2010
  • How to replace text using the replace statement

    Hi there I need to replace the occurrence of a Chr(13) then a space then another Chr(13) with nothing I thought replace(strDivision, (Chr(13) & " " & Chr(13)), "") might work but it doesn't Can someone advise me on how to do this?
    Posted to Access (Forum) by microsoft on 02-25-2010
  • Unable to change case in the last column of a table through VBA

    While helping someone else, I stumbled across some strange behavior. I was wondering if anyone has come across this before and has an explanation. The macro in the attached document just simply goes through each cell in a specific column of a table and changes the case. When I set the column index to...
    Posted to Visual Interdev (Forum) by microsoft on 02-16-2010
  • Word VBA, Loop through all words in a document

    Using VBA for Word, how do I loop through all the "Words" in the Active document? I've used this in Access, but don't know the synatx for Word. I'm thinking it should look something like this: Sub Loop() Dim wd as Word for each wd in ActiveDocument 'Do Something Next wd End...
    Posted to Word (Forum) by microsoft on 02-12-2010
  • Word VBA for rotating pictures

    I have attempted to use the Marco to record the VBA for rorating the photos but .... without success. Can any expert give the code for rotating the selected pictures. Thanks in advance.
    Posted to Visual Interdev (Forum) by microsoft on 01-20-2010
  • Search and replace text containing superscripts in Word

    Hi, I have many documents in Microsfot Word 2007 (RTF, DOC or DOCX) which the text includes superscripts. One of the issues I need to solve is to find and replace sentences in which a superscript is located after the stop (the dot), adding a carriage return after the superscripts. The sentences look...
    Posted to Word (Forum) by microsoft on 01-18-2010
  • Word 2007 VBA Macros Disappear

    I have a bunch of macros written in VBscript that I run from a Macro-Enabled Word Document (.DOCM) in MS Word 2007. In general, all of my macros work, except one that I recently changed to accept an argument/function parameter. This is designed to allow me to parameterize an existing function. For some...
    Posted to Visual Interdev (Forum) by microsoft on 12-25-2009
  • Word VBA: How to get an ABSOLUTE line number?

    I'd like to get the ABSOLUTE line number (which means, count from the beginning of document, not the beginning of that page) of the first character of a selection (better yet, of any range). Any way to do this? Some related codes I know of are : [A] aRange.Information(wdFirstCharacterLineNumber)...
    Posted to Microsoft Office (Forum) by microsoft on 12-05-2009
  • Word Label Mail Merge Automation

    Hi MS Word VBA/VSTO experts, Is there a Word VBA command or a method in the Word 2007 Interop that does exactly the same as clicking the Update Labels button on the Mailings ribbon tab? Thanks, Pete
    Posted to VSTO (Forum) by microsoft on 12-04-2009
  • Debug VBA/Word macro

    What is wrong with this macro ? Sub PrintPagesWithCodeword() 'Prints all pages with a given string Dim Message As String, Title As String, Default As String, SpecialCode As String Message = "Only pages containing following text (case sensitive) will be printed: " ' Set prompt Title...
    Posted to Microsoft Office (Forum) by microsoft on 11-25-2009
Page 2 of 10 (92 items) < Previous 1 2 3 4 5 Next > ... Last ยป