• WSjweissmn1

    WSjweissmn1

    @wsjweissmn1

    Viewing 15 replies - 31 through 45 (of 82 total)
    Author
    Replies
    • in reply to: Word macro for Wildcard Find and Replace with Increment #1346310

      Thanks. that will certainly work.

      What I had in mind and have finally found again is the VBA method ConvertNumbersToText. You can use it for a list object, a listformat object, or an entire document.

      ActiveDocument.Lists(1).ConvertNumberstoText

      for example. It will work from the Immediate window or from a macro.

    • in reply to: Char styles not in the document Styles collection for 2007 #1346256

      Interesting and useful. But doesn’t solve my particular problem which has to do with char styles that show up ONLY in the Search box and are not related to the linked character styles discussed in much of the doc.

      The description of 2007-specific char styles is the clearest I’ve seen.

      Thanks!

    • in reply to: Figures in table cells won’t print #1346255

      Under Word Options, Display, Printing options make sure that Print drawings created in Word is checked.

    • in reply to: Word macro for Wildcard Find and Replace with Increment #1346252

      Another approach entirely would be to use a SEQ field with live numbering right up until the time you were done with the doc or at least done with putting in new requirements. At that point you could use the Word command that changes the numbering from live to fixed text (which exists but I don’t remember what it is called right at the moment).

    • Thanks. I don’t use format-to-style, and I have set the option to display only real styles in the styles pane.

      What I am dealing with is char styles embedded in documents that originated in 2003 but are being edited in 2007.

      The char styles are visible only when I do a search that includes a style specification.

      The macro does not work to remove these styles. I can remove them only via the immediate pane, and even then there are some strange results. For example, if I remove a char style for certain built-in styles, I get a spurious error message but the style is removed anyway.

      At this point I’m going to stop worrying about it, since even the most recalcitrant authors here have been forcibly moved away from using 2003.

      Thanks again.

      – Jessica

    • Not sure what I am supposed to pass to the first procedure – do I need to add a control or something?

      In any case, I copied the code as is, ran it, and no char styles were deleted.

      Has anybody run this code in Word 2007 and had it work?

      – Jessica

    • Hi, Paul. I understand that the macro only creates TmpSty on purpose. However, before I ran this particular test of the macro I had a Body Text style but no Body Text Char style. After I ran the macro I had both Body Text and Body Text Char. Honest. It may have something to do with Body Text being the alphabetically-first linked style in the doc. Or it may not.

      I’m going to consider this a Microsoft Word Version Change Mystery ™ and use Pam’s method.

    • Ok, this is getting wierder. I created a new untouched Normal.dotx. It has no char styles in it. I ran your macro, copied and pasted.

      It created, and I am NOT making this up, a style called Body Text Char.

      I deleted that style using the Immediate window. I tried to search formatting with that style specified, and the style was not there.

      I ran your macro again. Body Text Char was created again.

      This is spooky.

    • Hi again. I copied your code exactly. It still did not work; the char styles are still shown when I try to search with format matching a style, though they don’t show anywhere else in the UI, including the Organizer in the Templates and Add-ins dialog box.

      Even after a Save As, the char styles still show up when I do a search including style in the formatting.

      It’s slightly odd that the Styles.Add method uses the Name parameter where the parameter is now called NameLocal otherwise. And it is even odder that the Word 2007 help for the styles.add method onlytalks about HeadingStyle and not regular styles. I assume the latter is an error.

      Thanks for your help.

      – Jessica

      Perhaps that listing is just some kind of phantom.

    • Good morning. I tried your code, and none of the Char styles were deleted. I tried removing the On Error line, and of course it then failed on the many styles where the oSty.Linked property was not available.

      So I changed it to

      If oSty.Type = wdStyleTypeLinked

      which at least doesn’t cause an error and seems to be equivalent to your code.

      Same result: char styles are still there. Iterating through activedocument.Styles doesn’t seem to pick them up.

      Any other ideas?

      Thanks,

      Jessica

    • Thanks. I tried something equivalent to your code and none of those linked char styles ever turned up as I iterated through activeDocument.Styles…or at least when I displayed each style.namelocal in the loop the Char styles didn’t appear, and the Char styles were not deleted.

      I’ll try precisely this code when I am back at the office on Friday. I’m hoping that my code actually was’t equivalent and this will work.

      – Jessica

    • Have you looked at the permissions on the files? It may be that some inadvertent security setup change left her or you as not having permissions to open or change the files or the directory.

      Also, does this happen when you open the files from within Word AND when you try to open them by right clicking?

      – Jessica

    • in reply to: Trouble using GetAddress method #1333914

      Is there a way to get the source of this info to separate the contact names by tabs instead of commas? Otherwise I can see no solution since there is no way to tell the program which commas separate parts of a contact and which separate contacts from one another. It is fatally ambiguous.

    • Word’s definition of a word is idiosyncratic, and varies for different purposes. Welcome to the wonderful world under the hood of Word.

    • Right – that’s how I access it myself. The new find is useful if you like to see a big list that takes up a chunk of the screen. The old one is much more flexible.

    Viewing 15 replies - 31 through 45 (of 82 total)