ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   0's to blank cells (https://www.excelbanter.com/excel-programming/359244-0s-blank-cells.html)

Paul

0's to blank cells
 
using VBA is it possible to select a range of cells (e2:g3 - some may contain
numeric value (no text)), then put a zero into any of the cells that do not
contain a numeric value.

help appreciated

Tom Ogilvy

0's to blank cells
 
On Error Resume Next
selection.specialcells(xlblanks).value = 0
On Error goto 0

--
Regards,
Tom Ogilvy


"Paul" wrote:

using VBA is it possible to select a range of cells (e2:g3 - some may contain
numeric value (no text)), then put a zero into any of the cells that do not
contain a numeric value.

help appreciated


Paul

0's to blank cells
 
worked treat, many thanks

Paul

"Tom Ogilvy" wrote:

On Error Resume Next
selection.specialcells(xlblanks).value = 0
On Error goto 0

--
Regards,
Tom Ogilvy


"Paul" wrote:

using VBA is it possible to select a range of cells (e2:g3 - some may contain
numeric value (no text)), then put a zero into any of the cells that do not
contain a numeric value.

help appreciated


Tom Ogilvy

0's to blank cells
 
On error resume next
selection.specialcells(xlblanks).value = 0
On error goto 0

--
Regards,
Tom Ogilvy


"Paul" wrote:

using VBA is it possible to select a range of cells (e2:g3 - some may contain
numeric value (no text)), then put a zero into any of the cells that do not
contain a numeric value.

help appreciated



All times are GMT +1. The time now is 10:41 PM.

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