• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Round currency to 4 decimal places in excel 2007 vba

Hi all.

I have the code below that formats column I into currency. But instead of rounding to 2 decimal places I would like it to round to 4 decimal places. How can I do this?

Thank you in advance!
.Range("I3:I" & rng2).Style = "Currency"

Open in new window

1 Solution
Maybe tweak this as necessary?
.Range("I3:I" & rng2).NumberFormat = "$0.0000"

Open in new window


Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now