I'm using this script:
I want the inputbox data to be my current selection.
For example, lets say my selection is cell A20, I want the inputbox value to be the value of A20.
Thanks for taking a look!
Code:
Sub deletename()
inpData = Application.InputBox("Select name to delete in this worksheet and others at right")
For s = ActiveSheet.Index To Sheets.Count
Set c = Sheets(s).Range("A1:A65536").Find(inpData)
If Not c Is Nothing Then
c.EntireRow.Delete
End If
Next s
End Sub
I want the inputbox data to be my current selection.
For example, lets say my selection is cell A20, I want the inputbox value to be the value of A20.
Thanks for taking a look!