Excel keeps calling/opening my source workbook.

emedi014

New Member
Joined
Nov 28, 2019
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Guys,

I got a "Coach Performance.xlsm" file tI0hat is fed from \\N50K12FS01\MGI_Coach$\emedi014\Documents\My Data Sources\QA Calculator - (All LOBs) Internal Data$.odc
Every time I open my "Coach Performance.xlsm > "DC" sheet file it should refresh with the below VBA procedure.​
However, after "Refreshing All", excel automatically calls/open my source workbook. "\\N50K12FS01\MGI_Coach$\emedi014\Documents\My Data Sources\QA Calculator - (All LOBs) Internal Data$.odc "​
Can anyone help me improve this code? Thanks for your assistance, o_O
----
Private Sub Workbook_Open()
ThisWorkbook.Worksheets("DC").Unprotect Password:="2020"
ThisWorkbook.RefreshAll
ThisWorkbook.Worksheets("DC").Protect Password:="2020", DrawingObjects:=False, Contents:=True, Scenarios:=True , AllowFiltering:=True, AllowUsingPivotTables:=True
ActiveWorkbook.RefreshAll
Application.DisplayAlerts = False

End Sub
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I suspect you have a Worksheet event code that runs a query to your source file.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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