

The Best Office Productivity Tools Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80% Now in the first opening Kutools for Excel dialog box please type the worksheet name into it and click the OK button and then in the second opening dialog box please type the name of certain named range into it, and click the OK button. Click the Run button or press F5 Key to run this VBA.Ĥ. If UCase(Mid(sFormula, Pos, 1)) = Chr(95) Thenģ. If UCase(Mid(sFormula, Pos, 1)) = Chr(34) Then If UCase(Mid(sFormula, Pos, 1)) = Chr(I) Then Private Function IsVaildChar(sFormula As String, Pos As Long) As Boolean XPos1 = InStr(xPos2, sFormula, sName) - 1 Private Function IsPresent(sFormula As String, sName As String) As Boolean MsgBox "The Named Range has been found these locations: " & xFoundAt,, "Kutools for Excel" MsgBox "The Named Range was not found",, "Kutools for Excel" XFoundAt = xFoundAt & ", " & xCell.Address

If IsPresent(xCell.Formula, xSearchName) Then LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ Set xCell = xRg.Find(What:=xSearchName, LookIn:=xlFormulas, _ XSearchName = Application.InputBox("Please type the name of named range:", "Kutools for Excel") Set xSht = Application.Worksheets(xShName) XShName = Application.InputBox("Please type a sheet name you will find cells in:", "Kutools for Excel", ) VBA: Find where a certain named range is used Sub Find_namedrange_place() Click the Insert > Module, and copy and paste following code into the opening Module window. Press the Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.Ģ. This method will introduce a VBA macro to find out all cells which use the certain named range in Excel.
