vba - how to remove parentheses for negative number in excel -


i trying remove parentheses negative numbers in excel, have far been unable remove them successfully

i tried below code:

sheet1.usedrange.select sheet1.range("a:xfd").numberformat = "0.00" objexcel.activeworkbook.precisionasdisplayed = true 

but works after doing texttocolumns manually. need more general solution, don't know rows have numbers.

that has format of cell. right-click cell > format > (select number or currency) change how want negative number look. ... or if want in vba, change negative values red:

range("a1").numberformat = "$#,##0.00;[red]$#,##0.00" 

this change ():

range("a1").style = "currency" 

or this:

range("a1").numberformat = "$#,##0.00_);[red]($#,##0.00)" 

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -