ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   delete (https://www.excelbanter.com/excel-programming/338233-delete.html)

Tim

delete
 
Hello All,

I need to look into a cell and determine if it has a value and there is no
formula, then delete the contents. Thanks

Harald Staff

delete
 
Sub test()
Dim Cel As Range
Set Cel = Selection(1)
If Cel.HasFormula = False Then Cel.ClearContents
End Sub

"Tim" skrev i melding
...
Hello All,

I need to look into a cell and determine if it has a value and there is no
formula, then delete the contents. Thanks





All times are GMT +1. The time now is 10:32 AM.

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