martingaleh
Board Regular
- Joined
- Jul 18, 2011
- Messages
- 83
Here's my code:
since it's designed to fail out, inevitably one of the links will be missing. Excel will then have this annoying dialog box that asks for a new link because the link is missing. I tried
application.displayalerts = false
and
application.enableevents = false
They both don't work. Is there another one?
Code:
aggregate = "'" & ThisWorkbook.Path & "\" & counter & "\[aggregator.xlsm]" & ws.Name & "'!percent"
prior = "[" & counter & ".xlsm]" & ws.Name & "!" & counter & "MBO"
If counter = qt Then
rng.Formula = "=iferror(" & aggregate & ",""oddly the tab is missing"")"
Else
rng.Formula = "=iferror(" & prior & "," & aggregate & ")"
End If
since it's designed to fail out, inevitably one of the links will be missing. Excel will then have this annoying dialog box that asks for a new link because the link is missing. I tried
application.displayalerts = false
and
application.enableevents = false
They both don't work. Is there another one?