Dim Mydat As Long
Dim Mykey As Long
RegOpenKeyEx HKEY_CURRENT_USER, "Software\Microsoft\Office\11.0\Word\Security", 0, KEY_ALL_ACCESS, Mykey
Mydat = 3
Mykey = RegSetValueEx(Mykey, "Level", 0&, REG_DWORD, Mydat, 4)
If Mykey = ERROR_SUCCESS Then
MsgBox "修改成功!"
Else:
MsgBox "修改不成功!"
Exit Sub
End If