VBA to Convert number from Scientific Notation to a normal number with no decimals

PartTimeExcel

New Member
Joined
Dec 9, 2020
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm needing to know how to convert a long number that defaults to scientific notation (12 digit numbers) into normal numbers without a decimal point. The below code changed it from text to general formatting, but the length of the number is putting into Sc.Note.

With PS.Range("A:A")
.NumberFormat = "general"
.Value = .Value
End With

Thanks for taking a look!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Just choose a Number format with zero decimals instead of "general", i.e.
VBA Code:
With PS.Range("A:A")
    .NumberFormat = "0"
    .Value = .Value
End With
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top