Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increase/decrease decimal code
Hi all,
I've been digging through the VBA functions in search of an easy way to increase/decrease the number of decimal places shown in a cell. The purpose would be so that I could use a shortcut macro key instead of having to go up to the toolbar every time. So far I've had no luck. Short of manually retrieving and modifying the cell's NumberFormat property, anyone know of a simple way to accomplish this? Thanks for any help! Chris |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increase/decrease decimal code
That is how you would do it. That is how it is set, so that is how you
would have to reset it. -- Regards, Tom Ogilvy "Chris" wrote in message ... Hi all, I've been digging through the VBA functions in search of an easy way to increase/decrease the number of decimal places shown in a cell. The purpose would be so that I could use a shortcut macro key instead of having to go up to the toolbar every time. So far I've had no luck. Short of manually retrieving and modifying the cell's NumberFormat property, anyone know of a simple way to accomplish this? Thanks for any help! Chris |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increase/decrease decimal code
Chris,
Here's one way: Const cDecreaseDecimal = 399 Const cIncreaseDecimal = 398 Application.CommandBars.FindControl(ID:=cIncreaseD ecimal).Execute -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Chris" wrote in message ... Hi all, I've been digging through the VBA functions in search of an easy way to increase/decrease the number of decimal places shown in a cell. The purpose would be so that I could use a shortcut macro key instead of having to go up to the toolbar every time. So far I've had no luck. Short of manually retrieving and modifying the cell's NumberFormat property, anyone know of a simple way to accomplish this? Thanks for any help! Chris |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increase/decrease decimal code
Worked like a charm, many thanks!
-----Original Message----- Chris, Here's one way: Const cDecreaseDecimal = 399 Const cIncreaseDecimal = 398 Application.CommandBars.FindControl (ID:=cIncreaseDecimal).Execute -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Chris" wrote in message ... Hi all, I've been digging through the VBA functions in search of an easy way to increase/decrease the number of decimal places shown in a cell. The purpose would be so that I could use a shortcut macro key instead of having to go up to the toolbar every time. So far I've had no luck. Short of manually retrieving and modifying the cell's NumberFormat property, anyone know of a simple way to accomplish this? Thanks for any help! Chris . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Increase & Decrease Decimal Place | Excel Worksheet Functions | |||
increase/decrease decimal | Excel Worksheet Functions | |||
% of increase or decrease | Excel Discussion (Misc queries) | |||
How do I set a cell that can increase but never decrease? | Excel Discussion (Misc queries) | |||
Value Increase/Decrease/No Change | Excel Worksheet Functions |