"Office has detected a problem with this file.  Editing it may harm your computer.  Click for more details"
Results 1 to 2 of 2

Thread: "Office has detected a problem with this file. Editing it may harm your computer. Click for more details"
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jun 2018
    Location
    Lebanon NH
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default "Office has detected a problem with this file. Editing it may harm your computer. Click for more details"

    Good afternoon,
    I have been working on projects using the only version supported here, 2000. To date I have had no issues working on it from my home PC running 2010 as long as I ran it in compatibility mode. Yesterday I opened it from home and got a red banner at the top with the message "Office has detected a problem with this file. Editing it may harm your computer. Click for more details"
    I clicked and it brought me to my INFO page which stated that Excel found an issue with my file and editing it may be dangerous. To keep my computer safe the file was opened in Protected View. I scanned the file for issues and none were detected. I then clicked Edit Anyway and ran the file through it's paces with no issues. Back at work today and as long as I open it from 2000 no issues. As soon as I open it from 2010 I get the error. When I click Edit Anyway it appears that the macro that always opens the main worksheet upon opening the file may be involved as I get the error message "Activate method of Worksheet Class failed". I click End in the error box and continue on my merry way.
    Macro code is below
    Code:
    Private Sub Workbook_Open()Worksheets("Front End").Activate
    Application.GoTo Range("A1"), True
    ActiveWindow.VisibleRange(1, 1).Select
    End Sub
    I would appreciate any suggestions or thoughts as to what could be going on.
    Thanks,
    Bill

  2. #2
    Board Regular
    Join Date
    Jun 2018
    Location
    Lebanon NH
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: "Office has detected a problem with this file. Editing it may harm your computer. Click for more details"

    I noticed that I fat fingered the code. It actually looks like this
    Code:
    Private Sub Workbook_Open()Worksheets("Front End").Activate
    Application.GoTo Range("A1"), True
    ActiveWindow.VisibleRange(1, 1).Select
    End Sub

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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