Reposted from a different forum. Had a number of views in a different forum, but no comments:
Long story short: I had code that has been working for years that suddenly breaks due to Microsoft patch update. The VBA code I wrote copies several worksheets to a new workbook. I have links with named ranges which were able to normally convert to hard-coded values upon breaking the link, and now doesn't break and I'm getting "$NAME?" errors everywhere. I have tried to change security settings for macro security "Enable VBA macros (not recommended; potentially dangerous code can run)", but that fails too.
Any comments or suggestions are appreciated!
This is the code which worked, but now fails:
astrLinks = wkbDisk.LinkSources(Type:=xlLinkTypeExcelLinks)
If IsArray(astrLinks) Then
/* code fails in next portion where it's supposed to break link to */
For iCtr = LBound(astrLinks) To UBound(astrLinks)
wkbDisk.BreakLink Name:=astrLinks(iCtr), _
Type:=xlExcelLinks
Next iCtr
End If
/* end of code containing VBA error */
Bookmarks