Format the Numbers using VBA Macros

     

    Convert the Number into Thousands

  • Selection.NumberFormat = "0.0, ""k"""
  •  

     

    Convert the Number into Millions

  • Activecell.NumberFormat = "0.0,, ""M"""
  •  

     

    Change the color of the Number

  • ActiveCell.NumberFormat = "[Red] 0"
  • ActiveCell.NumberFormat = "[Green] 0"
  • ActiveCell.NumberFormat = "[Blue] 0"
  •  

     

    Add Two Decimals after zero

  • ActiveCell.NumberFormat = "0.00"
  •