Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[REQ] - Script to change some Excel's registry entries

Featured Replies

I need a change script to change some registry entries for M$ Excel program (solely 2010, 2013 and 2016), to make it work along with Sandboxie.
I can't do a fixed reg file since it has some variables that changes and become unique on every installation on every different scenario.


Requirements:
1. The script needs to make a backup (reg file) of the following entries as a first function (here don't matter Office version or achitecture):
HKEY_CLASSES_ROOT\Excel.Sheet.12\shell\Open
HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open
HKEY_CLASSES_ROOT\Excel.SheetMacroEnabled.12\shell\Open

v4d4PBi.png


2. Then, the script must be able to make the following changes depicted in the image:

The image shows only Excel.Sheet.8 entry yet the script must consider Excel.Sheet.12 and Excel.SheetMacroEnabled.12 as well.

To all the scriptmasters in here, thanks in advance for you help.

As you haven't provided sufficient information to persuade me otherwise could you explain why, if your intending to change settings for the interactive user, you aren't making changes to HKEY_CURRENT_USER\Software\Classes instead of HKEY_CLASSES_ROOT.

Please be aware that this Member has also asked this question elsewhere. Could you please tell me why if you're only wanting to change these settings on the PC's of your Brother, Son, Wife and yourself why you would wish to script something that would take only 1 minute to perform on each of the four machines once.

  • Author

Did not know I have to explain why about my requests, anyway thanks for your "kind" help.

Do a REG QUERY of each of the six known registry locations within a FOR LOOP and put the output into VARIABLES.

Replace the last four characters of the saved VARIABLES with the new strings
REG ADD the six known registry locations with the updated VARIABLES
REG DELETE the three known keys

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.