Consulting

Results 1 to 2 of 2

Thread: Problem openning Excel with 'Workbooks.Open '

  1. #1

    Problem openning Excel with 'Workbooks.Open '

    Dear all, I was trying to open Excel file using Workbooks.Open Method. However this failed upon following warning:

    "Excel has detected a problem with this file. Openning it may be dangerous. You should not open this file unless you trust it"

    How could I open such file and working on it (using VBA code) ignoring that message?


    Thanks for your help

  2. #2
    VBAX Mentor Teeroy's Avatar
    Joined
    Apr 2012
    Location
    Sydney, Australia
    Posts
    414
    Location
    It is part of your security setting for excel. I don't think there is a way to disable it with VBA and I'd be annoyed if there was (it is there to protect the PC from malicious code after all). Make the file a Trusted file and you won't get the warning (depending on your security settings, I think that's right for medium).
    _________________________________________________________________________
    "In theory there is no difference between theory and practice. In practice there is." - Chuck Reid

    Any day you learn something new is a day not wasted.

Posting Permissions

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