Consulting

Results 1 to 10 of 10

Thread: Solved: macro virus warning

  1. #1

    Solved: macro virus warning

    Sporadically, I get the following warning:
    The macros in this file do not match the digital signature. Only a macro virus would cause this. Please scan for viruses, and notify the publisher of this document. Macros will be disabled.
    I scanned for viruses, but there was no macro virus found. I notified the publisher - which happens to be myself. So what do I do? This dialog sounds like a firefighters saying: "Your house is on fire. Please contact the home owner."

    Actually, I'm pretty sure it's not a virus per this related post. However, the solution of that post doesn't apply, since I don't have any fancy things like multiple computers. This just happens sporadically, about once for every 5 times I open a file I signed. I found no pattern in when it complains, and when it doesn't.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try re-signing the project.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    I'm not sure what exactly you mean by "re-signing".

    Do you mean running Digital Certificate for VBA Projects again to create another signature? I did that once, but the new signature is just a spitting image of the first one, and behaves no better.

    Or do you mean the following?
    ① In VBIDE, select Tools → Digital signature
    ② Remove existing signature
    ③ Choose new signature
    ④ Save file and exit Excel
    ⑤ Start Excel again, and tell it to always trust myself.

    I do that each time when that happens.Part of why I'm unsure if that's what you mean is that I don't see any other way to move on. My impression was that Excel doesn't allow me to work with macros unless I remove the signature. So, if I want to keep working with signatures, it seems to me that I have to choose a signature again. Are you aware of another way? If so, I could try that one for a change and see if that helps.

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Changing the code can cause the signature to be "lost"
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Ah, thank you! So, what do you guys do about that? I guess you must be changing code all the time, too. Of course, this is no big problem, but it defeats the purpose, since frequent re-signing is no less annoying than regular macro enabling.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    No I don't use signing because it causes more problems than it is worth.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    Quote Originally Posted by xld
    No I don't use signing because it causes more problems than it is worth.
    Thanks, guys, for both your answers. Such answers are really helpful, because they let me know when it's time to stop banging my head against a wall.

  8. #8
    VBAX Regular
    Joined
    Dec 2010
    Posts
    14
    Location
    A macro can be confused with a virus???

  9. #9

    alzheimer

    thanks for the informations, thats really useful.

  10. #10
    VBAX Newbie
    Joined
    Jan 2012
    Posts
    5
    Location

    Solved

    I am glad you solved your problem with the help of staff

Posting Permissions

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