Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Opening a file using a macro

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Adelaide, Australia
    Posts
    182
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I wish to open a file using a macro (which I can do OK) but I want to disable the macros in the new file - any help is appreciated.

    Thnx
    Stuart

  2. #2
    Legend NateO's Avatar
    Join Date
    Feb 2002
    Location
    Minneapolis, Mn, USA
    Posts
    9,700
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    To disable events (i.e., workbook_open)

    add: application.enableevents = false to your code.

    Auto events (i.e., auto_open) will not run while opening a workbook with vba. Hold the shift key while closing it, if you're not closing it using vba.

    Cheers, Nate

    [ This Message was edited by: NateO on 2002-02-25 15:16 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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