I am trying to find/create code that will allow me to find and replace any value within a column, that will always be named "Taxable Amount" as the header but may not always be in the same column (i.e. needs to be dynamic because it may in one instance be "C1" and the next be "H1"). I want the code to be able to go down the colomn row by row and replace any value that is less than zero ("<0") with "0".
This would be code that would be placed within my current code that is used to copy information from one place and paste into the new sheet, but I cant seem to get it to work.
Any help would be great.
This is what I have been playing around with to start, but is obviously incorrect because I keep getting an error:
This would be code that would be placed within my current code that is used to copy information from one place and paste into the new sheet, but I cant seem to get it to work.
Any help would be great.
This is what I have been playing around with to start, but is obviously incorrect because I keep getting an error:
Code:
Dim WageCol
Set WageCol = Range(ActiveSheet.Find("Taxable Wages").End(xlDown))
'When WageCol is <0 need help with
'Then .Value = "0" need help with