Insérer automatiquement une décimale fixe : valeur de Registre autodecUtilisateurHKCU\software\policies\microsoft\office\16.0\excel\options

ID de stratégie
L_Automaticallyinsertadecimalpoint
Étendue
Configuration utilisateur
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Catégorie
Microsoft Excel 2016 › Options Excel › Options avancées

Registre

autodec

REG_DWORDUtilisateur
Valeur si activée
5
Valeur si désactivée
4
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\options]

; Options (en utiliser une seule)
; Activé
"autodec"=dword:00000005
; Désactivé
"autodec"=dword:00000004
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "autodec" /t REG_DWORD /d 5 /f
:: Désactivé
reg add "HKCU\software\policies\microsoft\office\16.0\excel\options" /v "autodec" /t REG_DWORD /d 4 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'autodec' -PropertyType DWord -Value 5 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\options' -Name 'autodec' -PropertyType DWord -Value 4 -Force | Out-Null