79093074

Date: 2024-10-16 08:22:35
Score: 0.5
Natty:
Report link

Thanks for the hints (don't have a clue why I did not find the simular issue, did search for it). Ended up using below code for testing, which does the trick:

    xlRangeTemp = SubtractRanges(xlRangeRealUsed, xlRangeSameSheet)
For Each rngCell In xlRangeTemp
    arrow = 1
    link = 1

    Try
        rngCell.ShowDependents()
        'watch if dependent is on protected sheet  'to be changed
    Catch ex As Exception

    End Try
    Try
        xlPrecedentRange = rngCell.NavigateArrow(False, arrow, link)
    Catch ex As Exception

    End Try

    If xlPrecedentRange.Worksheet.Name <> rngCell.Worksheet.Name Then
        If xlRangeOtherSheets Is Nothing Then
            xlRangeOtherSheets = rngCell
        Else
            xlRangeOtherSheets = XL.Union(xlRangeOtherSheets, rngCell)
        End If
    End If
Next
WsClearArrowsBasic (xlWorksheet)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MyExcelDeveloper.com