Getting the below error after extracting the macro as excel sheet

Gautham A

Board Regular
Joined
May 25, 2020
Messages
107
Office Version
  1. 2016
Platform
  1. Windows
I do certain operations in macro sheet and i extracted it as a separate excel sheet. After opening the excel sheet, im getting the below error.Is there any code i can wrote in VBA to disable the below error?



We can't update some of the links in your workbook right now.
You can continue without updating their values, or edit the links you think are wrong
 

Attachments

  • images.png
    images.png
    3.2 KB · Views: 3

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Tried turning alerts on and off?

VBA Code:
application.displayalerts = False
application.displayalerts = True
 
Upvote 0
Yes. I tried that one as well. The issue here is not with the macro sheet. The error comes after I extract some of the sheets in this macro as a separate Excel file.
 
Upvote 0
Not sure if it will work in your case but maybe try....
VBA Code:
Sub Workbook_Open()
   Application.DisplayAlerts = False
   Application.AskToUpdateLinks = False
   Application.DisplayAlerts = True
End Sub
Another option (although I don't like using it) is
Code:
Private Sub Workbook_Open()
ThisWorkbook.UpdateLinks =  xlUpdateLinksUserSetting  'or  xlUpdateLinksNever 
End Sub
 
Upvote 0
Hi Mark,
The second one works in my Excel sheet. Thank you so much
 
Upvote 0

Forum statistics

Threads
1,214,873
Messages
6,122,029
Members
449,061
Latest member
TheRealJoaquin

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