Knockoutpie
Board Regular
- Joined
- Sep 10, 2018
- Messages
- 116
- Office Version
- 365
- Platform
- Windows
Hi all,
is there a way to have the below code prompt for user input for the replacement value?
The below is basically searching the entire sheet for "$1" and replacing it with "$2"
But I was wondering if there was a way to search "$numerical value" and replace with "$inputboxvalue"
is there a way to have the below code prompt for user input for the replacement value?
The below is basically searching the entire sheet for "$1" and replacing it with "$2"
But I was wondering if there was a way to search "$numerical value" and replace with "$inputboxvalue"
VBA Code:
Sub Macro1()
'
' Macro1 Macro
'
'
Cells.Replace What:="$1", Replacement:="$2", LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=True, _
FormulaVersion:=xlReplaceFormula2
End Sub