Is there a shortcut key or easy way using macros to increase/decrease the number of decimal places? I’ve searched Microsoft’s list of shortcuts and played with macros with no success.
Thanks!
Larry
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Shortcut/macro to increase/decrease # decimal plac (Excel XP)
Macros with these instructions:
CommandBars(“Formatting”).FindControl(ID:=398).Execute
for increasing number of decimal places, and
CommandBars(“Formatting”).FindControl(ID:=399).Execute
for decreasing the number of decimal places, will probably work on a system that uses a decimal point. It will fail on systems using something else, such as a comma, as decimal separator.
You could assign keyboard shortcuts to those macros.
I simply used
? CommandBars(“Formatting”).Controls(“Increase Decimal”).ID
and
? CommandBars(“Formatting”).Controls(“Decrease Decimal”).ID
in the Immediate window. You could use CommandBars(“Formatting”).Controls(“Increase Decimal”) too, instead of the expression with the ID’s, but then the code would only work on an English language system.
See for example post 71782 for a macro to list all IDs.
I simply used
? CommandBars(“Formatting”).Controls(“Increase Decimal”).ID
and
? CommandBars(“Formatting”).Controls(“Decrease Decimal”).ID
in the Immediate window. You could use CommandBars(“Formatting”).Controls(“Increase Decimal”) too, instead of the expression with the ID’s, but then the code would only work on an English language system.
See for example post 71782 for a macro to list all IDs.
You can find all of them (for all Office applications) in my xlmenufundict
You can find all of them (for all Office applications) in my xlmenufundict
Macros with these instructions:
CommandBars(“Formatting”).FindControl(ID:=398).Execute
for increasing number of decimal places, and
CommandBars(“Formatting”).FindControl(ID:=399).Execute
for decreasing the number of decimal places, will probably work on a system that uses a decimal point. It will fail on systems using something else, such as a comma, as decimal separator.
You could assign keyboard shortcuts to those macros.
You can also find an updated (for Excel 2003) list of keyboard shortcuts at this MS web site:
Office Online – Excel shortcut and function keys
Note: click “Show All” link at top of page to display full list, which can be printed. I copied these into a spreadsheet, see attached file (XL 2K format). The format is somewhat different than the other list which was based on Help file. Note – some of these may only apply to XL 2003/2003 (ie, Task Pane shortcuts). Still apparently no keyboard shortcut for increasing/decreasing the decimal places. As noted on web site, “If an action you use often does not have a shortcut key, you can record a macro to create one.”
HTH
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications