ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   auto format on number entry (https://www.excelbanter.com/setting-up-configuration-excel/138354-auto-format-number-entry.html)

bbxrider

auto format on number entry
 
is there some macro/etc that will auto convert entered numbers into 2
decimal places
like an adding machine,
i dont mean to convert after the number is entered and then run a macro that
divides by 100
but essentially doing the divide by 100 when either return is hit or an
arrow key that moves
out of the cell where the number has just been entered.



Gord Dibben

auto format on number entry
 
ToolsOptionsEdit.

Check "fixed decimal places" and set to 2 places.

Note: this is global setting so all workbooks/worksheets will be affected.

Otherwise, event code can do the job for a specific range or worksheet.


Gord Dibben MS Excel MVP


On Mon, 9 Apr 2007 16:05:29 -0700, "bbxrider" wrote:

is there some macro/etc that will auto convert entered numbers into 2
decimal places
like an adding machine,
i dont mean to convert after the number is entered and then run a macro that
divides by 100
but essentially doing the divide by 100 when either return is hit or an
arrow key that moves
out of the cell where the number has just been entered.




All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com