Excel disable warning - Some files can contain viruses

Page 1 of 2 12 LastLast

  1. Posts : 30
    Windows 10
       #1

    Excel disable warning - Some files can contain viruses


    Created link to .bat file in Excel 2024 and when clicking i am getting this message.

    Need to disable this, i did add folder where the .bat file is located to trusted location, it did not help.

    Excel disable warning - Some files can contain viruses-1.png
      My Computer


  2. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    I call batch files from within VBA without any problem.
    Perhaps you could try that instead.


    All the best,
    Denis
      My Computer


  3. Posts : 30
    Windows 10
    Thread Starter
       #3

    Try3 said:
    I call batch files from within VBA without any problem.
    Perhaps you could try that instead.
    VBA is .vbs file?

    Problem is excel shows this warning for any other file than text including .vbs and .lnk

    If you mean like create a macro and assign to hotkey or go trough Alt+F8 then Run then its not solution i am looking for because i generate the Excel file with Python and it contains like 300 links, inside cells that i want to be able to click quickly with mouse.

    Excel disable warning - Some files can contain viruses-1.png
      My Computer


  4. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    Understood. My suggestion is not suitable for your needs.


    VBA is the scripting language built into MSOffice. So yes, macros.
    If you go into Excel Options then you'll see the setting for showing the Developer tab. That's the main entry point for working on VBA.
    VBA does not use files of its own [except for backup purposes]. Its code lives entirely within MSOffice files.


    Best of luck,
    Denis
      My Computer


  5. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    Hold on.
    I've found the solution in my MSOffice 2007.
    I'll get to my MSOffice 2021 computer to check how to set that version up and post back.


    Denis
      My Computer


  6. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    I can't find it in Excel 2021.
    It must be a setting somewhere in
    Excel Options,
    Trust Centre,
    Trust centre settings.
    I don't think it is in the Protected view group of settings you'll see there but ...

    In Excel 2007, it's in Privacy options but it is not there in Excel 2021.
    In Excel 2007, I clear this checkbox to suppress that warning dialogue you are getting.
    Excel disable warning - Some files can contain viruses-check-hyperlinks.png
    When I tested this in Excel 2007, I found that I had to save, close then re-open the file before the changed setting took effect.
    There was another quirk - after testing it, I set that checkbox again and expected to get the security warning again but did not. Both existing & new hyperlinks to files opened without any warnings both in my original test file and new test files that I have since created.




    Denis
    Last edited by Try3; 12 Mar 2024 at 17:14.
      My Computer


  7. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    This seems to be the answer but I'm hungry and have to stop now.
    Enable or disable hyperlink warning messages in Office programs - MSLearn



    Best of luck,
    Denis
      My Computer


  8. Posts : 30
    Windows 10
    Thread Starter
       #8

    Try3 said:
    This seems to be the answer but I'm hungry and have to stop now.
    Enable or disable hyperlink warning messages in Office programs - MSLearn
    That is actually for another warning there were two popups at first. First one i disabled with solution from site you linked before creating this thread.
    Excel disable warning - Some files can contain viruses-2.png

    - - - Updated - - -

    Try3 said:
    I can't find it in Excel 2021.
    It must be a setting somewhere in
    Excel Options,
    Trust Centre,
    Trust centre settings.
    I don't think it is in the Protected view group of settings you'll see there but ...

    In Excel 2007, it's in Privacy options but it is not there in Excel 2021.
    In Excel 2007, I clear this checkbox to suppress that warning dialogue you are getting.
    Excel disable warning - Some files can contain viruses-check-hyperlinks.png
    When I tested this in Excel 2007, I found that I had to save, close then re-open the file before the changed setting took effect.
    There was another quirk - after testing it, I set that checkbox again and expected to get the security warning again but did not. Both existing & new hyperlinks to files opened without any warnings both in my original test file and new test files that I have since created.
    Tried on office 2013 clean installation that option does not help.
    Last edited by captainJack; 12 Mar 2024 at 17:24.
      My Computer


  9. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #9

    captainJack said:
    Tried on office 2013 clean installation that option does not help.
    I've repeated my tests and I agree with you.
    Last night, I cleared that checkbox and the warnings stopped. Now the warnings appear again.
    I was working with links to several different file types.
    - The links to batch files generate warnings whatever the state of that switch.
    Excel disable warning - Some files can contain viruses-batch-file-hyperlink-warnings.png
    - The links to txt files & png pictures generated warnings until I cleared that checkbox. Now they do not generate warnings whatever the state of that checkbox.
    I cannot account for the change in behaviour. It seems that I must have made several mistakes last night but even that is an imperfect explanation.


    Denis
    Last edited by Try3; 13 Mar 2024 at 08:08.
      My Computer


  10. Posts : 30
    Windows 10
    Thread Starter
       #10

    This warning seems to be unavoidable except for few select file types like .txt i tried even office 2003 it has same warning.

    Also tried OpenOffice and LibreOffice they all have same warnings messages and apparently no way to disable it.

    I think i have to go VBA way after all.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:59.
Find Us




Windows 10 Forums