Search:

Type: Posts; User: Chris Green; Keyword(s):

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    428

    Re: For Each (XP)

    Ahh. I see it now. When I first tested, I didn't compile before testing. It was the compile time that caused the 9 to 4.5 second disparity. After compile, both your code and the stuff I wrote runs...
  2. Replies
    9
    Views
    428

    Re: For Each (XP)

    Thanks for responding, guys. Interesting little lesson, here.

    I took my work machine home. Wanted to test on the same file. It's got 48 tables, some of them rather long. It's also got a lot of...
  3. Replies
    9
    Views
    428

    For Each (XP)

    Hmmm. I ran the following code.

    <pre>For j = ActiveDocument.Tables.Count To 1 Step -1
    sngWid = 6.5 / ActiveDocument.Tables(j).Columns.Count
    For i = 1 To...
  4. Re: Getting hold of styles in template (Word 2k)

    Hi Arild,

    When you attach a new template, styles don't automatically come over. Use the Organizer (Format>Styles>Organizer Button) to copy the styles from your template to the document..

    HTH,
    ...
  5. Re: Mail Merge Protected Forms (Word 2k, 2002)

    I tried from Outlook. The only mail merge I could find was using Contacts. I wanted to use an external data source. In fact, Outlook help leads you in the direction of using Word's mail merge. Still...
  6. Mail Merge Protected Forms (Word 2k, 2002)

    Anybody know of any decent workarounds to the problem of not being able to mail merge a protected form? We had to do this programmatically.

    Heaven forfend that one would want to email a survey.
    ...
  7. Re: Headings and Page Breaks (Word 97 SR2)

    Hi Ron,

    How about creating another heading style ("Heading 2 w/ Page Break") and setting the Page Break Before property?

    HTH,

    Chris
  8. Replies
    5
    Views
    455

    Re: Grayed Out MRU (Word 2002)

    Hi Kevin,

    How about this?
  9. Replace works in debug but not run time (Word 2k, SR 1)

    The following code operates (sort of) on the HTML files of a Help Project. It works fine if run stand-alone. When called as a sub, it does not work in run-time, but does work if I break at the msgbox...
  10. Replies
    12
    Views
    624

    Re: Misuse of templates (W2K)

    Hi Howard,

    I'm aware of that. Perhaps I was unclear. My point was that you could use FileSearch to open only files with a .doc extension and a file type of template, eliminating the need to open...
  11. Replies
    12
    Views
    624

    Re: Misuse of templates (W2K)

    Or, use FileSearch to open the docs and set .FileName to "*.doc" and .FileType to msoFileTypeTemplates. That should target the offending files pretty well.

    HTH,

    Chris
  12. Code stops on doc.close (Work 2k, SR1)

    Garrrrhhh. Two problems

    1). It worked fine last week, honest. The code checks documents into SourceSafe. It sets a document variable to the document to be checked in and a variable to a dummy doc...
  13. Re: Nope, Nope, and Maybe

    Oop. I forgot it needs to work on a selection...
  14. Re: Nope, Nope, and Maybe

    Aha! Now we're gettin' somewhere. Why use a dummy doc at all?

    <pre>ActiveDocument.Styles("Testing").Delete
    ActiveDocument.Styles.Add Name:="Testing", Type:=wdStyleTypeCharacter
    With...
  15. Re: Remove Character Style but Leave Manual Formatting (2000)

    Hi Lin,

    I agree. <img src=/S/smile.gif border=0 alt=smile width=15 height=15> That's why I said in the last post, "The replace with new character style seems much better. "

    I proposed the code...
  16. Re: Remove Character Style but Leave Manual Formatting (2000)

    All I could think of off-hand was brute force. The replace with new character style seems much better.

    But, if you're interested, here's a snippet. You'd have to read into the array the font...
  17. Re: Remove Character Style but Leave Manual Formatting (2000)

    I'm confused. You *don't* want to remove text with the character style from the document.

    Do you want to undo the character style without impacting manual formatting on other text in the...
  18. Re: Remove Character Style but Leave Manual Formatting (2000)

    Instruct users on how to (or create a macro to) use Find/Replace to replace style "Instructions" with nothing.

    HTH,

    Chris
  19. Re: I have 20 people that use Term (Outlook 98, Excel 97)

    Hi Daniel,

    You might want to grab the install root value from the registry and append it to your shell string. For Office 97, I believe it's...
  20. Re: Variable in SQL statement (Word 97-SR2)

    Hi Joanne,

    How about the following?

    <pre>Dim strSQL As String


    strSQL = InputBox("Please enter the number of the month to use.", "Month")
    strSQL = "SELECT * 2001TIME.xls WHERE...
  21. Re: Template from template loses code (Word 2000 SR1)

    Hi Klaus,

    Open the original template and do a Save As from there, not from a document based on the template.

    HTH,

    Chris
  22. Re: Function to Remove Extra Spaces in a String (WD 2000 Sr-1)

    Hi Mark,

    The version of VBA in Work 2k added the Replace function. The following replaces all instances of two spaces with one. You may need to iterate through it several times if you're concerned...
  23. Re: Changing Hyperlinks in a Document (97 SR2)

    Hi MelanieB,

    If you show field codes, you can run your find and replace on the hyperlinks. Go to Tools > Options > View Tab > turn Field Codes on.

    HTH,

    Chris
  24. Replies
    6
    Views
    450

    Re: Macro (Word 2000, SR1)

    Rather than a macro, what about setting up your users spellchecking to enforce this convention? Tools > Options > Spelling and Grammar > Settings > Spaces Required Between Sentences.

    Chris
  25. Re: Finding the Beginning of a Line (Word 2000)

    <P ID="edit" class=small>Edited by Chris Green on 18-Oct-01 14:30.</P>Ahhh. Well, I don't call it "Workaround" for nothing. <img src=/S/smile.gif border=0 alt=smile width=15 height=15> Here's a...
Results 1 to 25 of 129
Page 1 of 6 1 2 3 4