+ Reply to Thread
Results 1 to 4 of 4

Excel macro security not working?

  1. #1
    Registered User
    Join Date
    10-23-2007
    Posts
    3

    Excel macro security not working?

    Something to try:

    Set the excel macro security to medium or high.
    Create a new spreadsheet.
    record a simply macro (eg start recording, just enter some date in cells, stop recording)
    save it as book1.xls and close excel.

    then make a .vbs file with this next bit in it:
    Please Login or Register  to view this content.

    now open the book1.xls - youll get a prompt about the macro security. so do whatever and close excel. this is normal.

    now open run the vbs. the xls file opens and you can go to macros and run the macro with no security message box!?

    why does this happen?

    i've tested only in excel 2002 and 2003 (xp sp2). does this happen in the latest excel?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I think because you are not opening immediately from Excel
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon wizerhoard

    The macro security box is only thrown up when you open a file manually. Open a file via VBA (as in this instance) and you won't see it.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    10-23-2007
    Posts
    3

    Exclamation macro security

    ok.
    thanks for confirming it's not just a config problem i have. it would seem to be a very bad security problem in excel then. i would think setting security level to maximum would stop macros no matter how they are run.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1