9

The below VBA in MS Access is run to format my Excel sheet. However, it is formatting to Number with 2 decimal places. How do I specify that I want 0 decimal places?

            wb.Sheets(1).Range("K:AD").Formula = wb.Sheets(1).Range("K:AD").Value
            wb.Sheets(1).Range("K:AD").NumberFormat = "Number"

1 Answer 1

24
 wb.Sheets(1).Range("K:AD").NumberFormat = "0"
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.