Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    May 2002
    Location
    Houston, Texas, USA
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Blank Document not Loading (XP)

    I have created a macro and toolbar button which bypasses Normal and opens a custom blank document. In testing, we have found that this works fine on several pc - that is, when the custom new blank doc button is clicked, Document 1 results and is based on the new blank.dot template. However, in a couple of instances, Word open the actual template, whether read only or not. The name of the template, "Blank" shows up in the title bar, as well.

    Anyone have any idea why this is happening? I appreciate any input.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Blank Document not Loading (XP)

    Documents.Add Template:="blank.dot" should add a Document1

    Documents.Open FileName:="blank.dot" should open the template itself

    If you are using .Add but getting .Open, something is very wrong. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Can you post a snippet of code to provide more insight?

  3. #3
    2 Star Lounger
    Join Date
    May 2002
    Location
    Houston, Texas, USA
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Blank Document not Loading (XP)

    Here it is:

    Documents.Add Template:= _
    "Cocuments and SettingsOwnerApplication DataMicrosoftTemplatesHUPK Blank.dot" _
    , NewTemplate:=False, DocumentType:=0
    End Sub

    Also, is it important that the Word desktop shortcut be pointing to this specific template location? Thanks for your help.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Blank Document not Loading (XP)

    Documents.Add should definitely create a new document, not open the template.

    What is the target of the desktop shortcut you are using now? And where does the macro live?

  5. #5
    2 Star Lounger
    Join Date
    May 2002
    Location
    Houston, Texas, USA
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Blank Document not Loading (XP)

    We have targeted the desktop shortcut to blank.dot in User Templates and things work fine now. The macro resides in Word Startup. From time to time, though, depending on the pc, either blank document won't load or in one case global toolbar and macros won't. We are puzzled.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •