Hello all, I am still new to this, but I have some code below that is supposed to update imputed on the "Updates" tab and update the data on the "Pricing Page". This is updating a specified range but when executed it is switching from the Updates tab to the Pricing page tab. Any ideas on why?
Code:
Sub ReplacePremier()
Dim wks As Worksheet
Dim vWhat As Variant
Dim vRepl As Variant
vWhat = Worksheets("Updates").Range("A7").Value
vRepl = Worksheets("Updates").Range("C7").Value
Worksheets("Pricing Page").Select
Set target = Range("C7:C50")
Sheets("Pricing Page").Range("C7:C50").Replace What:=vWhat, _
Replacement:=vRepl, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
MatchCase:=False, _
SearchFormat:=False, _
ReplaceFormat:=False
End Sub