ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   reset value in a column (https://www.excelbanter.com/excel-programming/347606-reset-value-column.html)

[email protected]

reset value in a column
 
Pleae can anyone advise me how to set reset a value to nothing
depending on its current value using VBA.

I have an excel column called 'New?' if the value is 'Y' I want to
return it to null.
Any help would be appreciated,
Redge


Norman Jones

reset value in a column
 
Hi Redog6

Try:

'=============
Public Sub Tester001()
Range("New").Replace What:="Y", _
Replacement:="", _
LookAt:=xlWhole, _
MatchCase:=False
End Sub
'<<=============

---
Regards,
Norman



wrote in message
ups.com...
Pleae can anyone advise me how to set reset a value to nothing
depending on its current value using VBA.

I have an excel column called 'New?' if the value is 'Y' I want to
return it to null.
Any help would be appreciated,
Redge




[email protected]

reset value in a column
 
Many thanks Norman - that worked fine - Redge



All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com