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

billfinn

Board Regular
Joined
Jun 7, 2018
Messages
114
Office Version
  1. 2016
Platform
  1. Windows
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
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top