decadence
Well-known Member
- Joined
- Oct 9, 2015
- Messages
- 525
- Office Version
- 365
- 2016
- 2013
- 2010
- 2007
- Platform
- Windows
Hi, I am trying to replace certain numbers with numbers in a selected column that has been filtered on a specific number in that column but can't get my head around it. but I need to be able to filter on the column selected. Also I am having trouble with the number changing visually when a 0 is at the start This is what I have so far.
Can someone help with this please.
Code:
Dim rngAddress As Range
Set rngAddress = Range("G1:H1").Find("Foot")
If rngAddress Is Nothing Then
Exit Sub
End If
Range(rngAddress, rngAddress.End(xlDown)).Select
Selection.NumberFormat = "@"
'''Filter on number 603 using the selected column'''
Selection.Replace What:="603", Replacement:="0603", LookAt:=xlPart, SearchOrder:=xlByRows
''' Filter off '''
Can someone help with this please.