#BLOCKED! Error and cannot figure it out!

bbbb1234

Board Regular
Joined
Aug 8, 2002
Messages
150
Office Version
  1. 365
Platform
  1. Windows
I have setup a Define Name formula to get the name of tabs in a workbook as follows:
Define Name: GetNames​
Formula used in Define Names: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")​
I was using this sheet on a Mac and it worked fine.
I opened it up on a PC and get the #BLOCKED! error as noted in the tab capture below
Here is the PC Config
OS: Microsoft Windows 10 Home​
Version: 10.0.19044 Build 19044​
Excel & Office version: Microsoft 365​

Cell Formulas
RangeFormula
A2:A8A2=ROW()-1
B2:B8B2=INDEX(SheetNames,A2)
C2:C8C2=HYPERLINK("#'"&B2&"'!A1",B2)
D3:D8D3=MAX(IF(INDIRECT("'"&$B3&"'!A1:ZZ5000")<>"",ROW($A$1:$ZT$5000)))
E3:E8E3=MAX(IF(INDIRECT("'"&B3&"'!A1:Zz5000")<>"",COLUMN($A$1:$ZT$5000)))


Why am I getting the #BLOCKED! error?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Get.Workbook is a Excel 4.0 (XLM) Macro and is now being blocked by default. You need to enable it in your trust settings.
File > Options > Trust Center > Trust Center Settings > Macro Settings
Turn on Enable Excel 4.0 macros when VBA macros are enabled.
Start with that, you may need to do more.

 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,665
Members
449,091
Latest member
peppernaut

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