Results 1 to 3 of 3
  1. #1
    danprtr
    Guest

    WordBasic Macro (v6.0) question

    Hi,

    My simple autoopen macro imports a text file when the document (otherwise blank) is opened.

    The problem is, the text file is imported not once but twice when Word must be started and the document opened.

    The text file is imported correctly (once) when Word is already open and the document is opened from Explorer.

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: WordBasic Macro (v6.0) question

    It's possible that your macro gets executed when Word is loaded (since Word is opening the Normal.dot in which your AutoOpen macro resides? and again when you create a new document (which is based on your Normal.dot in which your AutoOpen macro resides?


    AutoNew might be a better bet.

    There has been an extensive discussion of this over the past four weeks in, I think, the VB/VBA forum or this forum. Try using the Search feature here and look for "AutoNew"

  3. #3
    danprtr
    Guest

    Re: WordBasic Macro (v6.0) question

    Thanks Cris, I'll give it a try

Posting Permissions

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