Results 1 to 7 of 7

Thread: [RESOLVED] Badly needed excel-vba question

  1. #1

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    Resolved [RESOLVED] Badly needed excel-vba question

    How can you disable a macro virus protection using excel-vba.
    So that everytime you open this certain workbook it will automatically disable the macro virus protection.

    Note: The workbook should be the one containing the vba script.

    is it possible?

    ur response is very much appreciated.

  2. #2
    Lively Member flint's Avatar
    Join Date
    Oct 2000
    Posts
    67

    Cool Try this

    I think that you put this in the Workbook_Open event:
    Code:
    'Try this
    Application.DisplayAlerts = False
    I'm sure there's another way as well

    Regards,
    Flint Puckett

  3. #3

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619
    I've tried putting it on workbook on_open event but it doesn't work. The application scan the workbook before it open.

    Btw, I'm using excel2000.

  4. #4
    Addicted Member
    Join Date
    Oct 2000
    Location
    Vienna/Austria
    Posts
    132
    Hi VBKNIGHT !!!

    You can't avoid 1 time the macro warning if the user has choicen this. (Only if you change this outside Excel)

    Tho change them, sorry I can't remember. I found this
    1 time in an excel Virus for 97 version.

    if I figure out how to make this possible in Excel 2000 I will reply.

    -cu TheOnly


  5. #5
    Lively Member flint's Avatar
    Join Date
    Oct 2000
    Posts
    67
    I'm using Xcel 2000 as well. Yes I've tried it as well....that only works on certain display dialogs. I have a way to do this on your system. Go to Tools then Macros then Security and set the security level to Low. Note that this change only takes place on your system. I think that Microsoft intentionally placed the security dialog away from normal objects so that people could not disable this feature without the users consent. It makes sense to me...but it is a bit "goudy". Create your application in VB to avoid such annoyances.

    Cordially,
    Flint

  6. #6
    Junior Member
    Join Date
    Oct 2000
    Posts
    18

    Are you serious?

    If this was possible, what use would macro protection serve? It was designed to prevent the spread of macro virus'. If you could disable it within a vba macro you just defeated it's purpose!

  7. #7

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    Re: Are you serious?

    well this was a long time ago but it is possible thru registry modification.

    If a post has helped you then Please Rate it!

Posting Permissions

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



Click Here to Expand Forum to Full Width