juster21
Well-known Member
- Joined
- Jun 3, 2005
- Messages
- 867
This is the code i have...
The macro is assigned to a button named Retrieve Sales. It doesn't work. Where is my error?
Code:
Public Sub Retrieve_Sales()
OldRegion = Range("C2").Value
NewRegion = Range("D21").Value
Application.StatusBar = "Getting data on " & NewRegion
Range("A1:F19").Replace "OldRegion", "NewRegion"
Application.StatusBar = "False"
End Sub
The macro is assigned to a button named Retrieve Sales. It doesn't work. Where is my error?