May 11, 2017 #1 mstrcmtr Programmer Nov 14, 2007 103 PK By the help of following command in Excel Blank the Cell if Zero e.g. i = 30 oXs.Range('Z5:'+ 'Z'+ALLTRIM(STR(i))).NumberFormat = '0;-0;;@' But it will also remove the decimals What is the way to protect decimals and as well as blank if cell has zero value
By the help of following command in Excel Blank the Cell if Zero e.g. i = 30 oXs.Range('Z5:'+ 'Z'+ALLTRIM(STR(i))).NumberFormat = '0;-0;;@' But it will also remove the decimals What is the way to protect decimals and as well as blank if cell has zero value
May 11, 2017 1 #2 GriffMG Programmer Mar 4, 2002 6,333 FR Is it as simple as changing the format string to include fixed decimals? '0.00;-0.00;;@' Regards Griff Keep [Smile]ing There are 10 kinds of people in the world, those who understand binary and those who don't. I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you. Upvote 0 Downvote
Is it as simple as changing the format string to include fixed decimals? '0.00;-0.00;;@' Regards Griff Keep [Smile]ing There are 10 kinds of people in the world, those who understand binary and those who don't. I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
May 12, 2017 #3 GriffMG Programmer Mar 4, 2002 6,333 FR Pleased you are happy Regards Griff Keep [Smile]ing There are 10 kinds of people in the world, those who understand binary and those who don't. I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you. Upvote 0 Downvote
Pleased you are happy Regards Griff Keep [Smile]ing There are 10 kinds of people in the world, those who understand binary and those who don't. I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.