Excel Add-in doesn't get the hint - excel

I have an excel add-in that keeps coming back when I start excel, even though I've removed it from the last open instance of excel (yes I checked the processes in task manager).
The critter even shows up when I start excel in safe mode.
Anybody else had this?

Perhaps the add-in file is sitting in the Excel startup directory?
Tools -> Options -> General -> 'At startup, open all files in'
As well as the entry in this setting, Excel may also be implictly loading the add-in from folders such as
C:\Program Files\Microsoft
Office\OfficeVersion\Xlstart
C:\Documents and Settings\User
name\Application
Data\Microsoft\Excel\XLSTART
Any folder named 'xlstart' is a candidate - perhaps it's worth searching your C drive for such folders and/or the actual name of the add-in file.
Also, check the registry for Excel OPEN entries. Start -> Run -> regedit -> HKEY_CURRENT_USER\Software\Microsoft\Office\version\Excel\Options. Look for any values named OPENx.

Here are the steps:
First, remove the addIn from Excel. After removing it, don't reopen Excel yet
Go to registry: Start -> Run -> regedit -> HKEY_CURRENT_USER\Software\Microsoft\Office\version\Excel\Options. Delete the registry of the addIn you want to remove. The data column will give you the hint.
This is the key, remember to restart the computer to reset Excel. If you open Excel before the restart, it will register the AddIn in your registry again and you will need to start all over again

1) Did you check C:\Documents and Settings\\Application Data\Microsoft\AddIns and see if the file is there? If it is, you could delete it from there.
2) Try these steps:
• Try searching your C drive for all .xla or .xlam files and see if you can find the one that looks like the add-in you're trying to delete.
• If you find it, delete it (let it go to recycle bin though just in case something goes wrong and you want to get it back quickly).
• Once you delete it, start Excel. You may get message about add-in being missing, and if so say yes when prompted if you want to remove add-in from list.
• If not prompted, go to tools add-ins and check the box for the add-in you are trying to delete. Excel won't be able to find it, then it should prompt you as to whether you want to remove it from list. Say yes.

I was having the same issue and was able to solve it like this:
Open File Explorer and navigate to C:\Users\USERID\AppData\Roaming\Microsoft\AddIns, remove the add-in(s) you would like to remove.
Open Excel, when given warning about missing add-in(s) just click "ok".
Click "File", "Options", "Add-ins" then "Go"
The Add-ins window will appear, uncheck the add-in(s) you would like to remove. When prompted to remove CLICK NO (trust me).
Click "Ok", the Add-ins menu will close.
Save blank file to desktop, close Excel and Reopen. This time you should not get the warning messages about missing add-in(s).
Click "File", "Options", "Add-ins" then "Go" again.
This time, click on the add-in(s) you would like to remove, when prompted to remove remove from list select "Yes".
Click "Ok".
The Add-in(s) should no longer display in the Add-ins menu and the warning messages will stop appearing.
This is what worked for me, there may be unnecessary steps (like saving and possibly closing) but I wanted to include everything I did.

I found there was a process spawning the addin, and somehow managed to break it. Excel offered for me to disable it, and told me I could find it in Help > About > Disabled items if I wanted to reinstate it.

Related

Notepad++ copy / paste no longer works

I can't find an answer to this anywhere on the web.
In Notepad++ the copy/paste functions do not work NOW! They did before (until now).
The keyboard shortcuts do not work, but here is part of the issue.
On the menu at the top the cut and paste items are grayed out (so do not function there either).
At the shortcut mapper there are no entries for cut and paste (supposed to be at the top but are not anywhere).
These functions work OK in Windows so it is not a Microsoft problem but a Notepad++ problem exclusively.
Tried the following:
Closed all files and the program.
Restarted the program and tried again.
Downloaded the latest version and installed it. Tried again.
Help
Not sure what the real problem is, so bare with me,
First I'd check your bindings are set.
Open Notepad++,
Select "Macro" drop down menu, and click "Modify Shortcut/Delete Macro..."
Navigate to the "Scintilla commands" tab,
Here you can use the filter at the bottom of the window to find specifics,
e.g, "Copy" or "paste" and set your key-bindings.
My Copy is "Ctrl+C or Ctrl+INS" and Paste is "Ctrl+V or Shift+INS" by default.
It's not uncommon for third-party applications/processes to block certain features, also check the directory you installed it to, as sometimes permissions may block features, too.
Hope this helps.
I don't know why this ticket is still open but this was first on my Google list.
My issue was that I had "Set Read-Only" enabled on the "Edit" menu.

How to create an add-on and share it with other people?

I have created a few macros with the help of this community the last week, but now I am going to be off work for some time, therefore I need to hand my work over but for that people will need access to my macros. I have created a custom tab for myself that contains all my macros and they only need to follow instructions and click on them in theory.
I however, had issues creating that add-in. I have created the .xlam file but even though people select and load it my macros won't appear, neither at the developer -> Macros tab, nor my tab will appear. The only way for them to run my macros if the add-in is loaded if they go into the visual basic window and run it from there, but I don't want them to do that as I want to protect that with a password eventually.
If somebody has got a solution and willing to help, thanks in advance.
Into the Visual Basic window, you can import your .xlam file with Tools > References > Browse. Now, you should see your file into the Project Explorer of Visual Basic.
Hope this help !
There are couple of different ways you can install an Excel .xlam add-in.
Method One
Save the add-in Excel's start-up folder. Any Excel files saved in this folder are automatically loaded when Excel starts. To view the start-up path:
Open the Visual Basic window.
Open the Immediate Window (Ctrl + G or View >> Immediate Window).
Type ? Application.StartupPath.
You can also change the start-up path:
Click File >> Excel Options >> Advanced.
Under General, in the At Startup, open all files in box, type the full path of the folder that you want to use as the alternate startup folder.
Method Two
You can install the add-in directly:
Click File >> Options >> Add-ins
Pick Excel Add-ins from the manage drop-down (near the bottom of the screen).
Press Go >> Browse...
Navigate to the .xlam add-in you want to use.

Debug Excel add-in written by JavaScript API on an existing workbook

I am trying to develop an Excel add-in by using JavaScript API for Excel.
I can already make some samples run, launch debugging under Visual Studio. Every time when i launch debugging, it opens a new workbook of Excel.
However, most of time, I need to debug an add-in on an existing workbook. For instance, here is an add-in sample, which opens a blank workbook and adds blank sheets to it. However, I want it to add blank sheets to an existing (opened) workbook. Does anyone know what I should set to debug it on an existing (opened) workbook? Should I modify some lines of code?
Edit 1:
From http://dev.office.com/docs/add-ins/get-started/create-and-debug-office-add-ins-in-visual-studio
To use an existing document to debug the add-in
In Solution Explorer, choose the add-in project folder.
Note Choose the add-in project and not the web application project.
On the Project menu, choose Add Existing Item.
In the Add Existing Item dialog box, locate and select the document
that you want to add.
Choose the Add button to add the document to your project.
In Solution Explorer, open the shortcut menu for the project, and
then choose Properties.
The property pages for the project appear.
In the Start Document list, choose the document that you added to the
project, and then choose the OK button to close the property pages.
Here is the resulting configuration that you should see:
After that just press F5 (start debugging), and you should be good to go.
~ Michael Zlatkovsky, developer on Office Extensibility team, MSFT
For anyone else running into this same issue (i.e. tying to set up an existing worksheet for debugging) without having to jump through 3 hoops to insert the add-in every time, this worked for me:
Set the Start Document to "New Excel/Word/etc Document"
Hit F5 to start debugging.
The resulting new document will be read-only and it will be in the Debug/Release folder.
Close the document, don't save it.
Copy the document to the folder where your Web Add-In manifest is and renamed it to whatever name you prefer.
Uncheck "Read Only" int the file's properties.
Set the Start Document as described by Michael in his response above.
If you start debug now, the add-in "should" load automatically. If you start without debugging (Ctrl + F5), you should be able to close the document and open it (or a copy of it) from anywhere in the PC and it should load automatically. You can even make changes to your JS code and reload the taskpanes/dialogs and it should take effect.
What did NOT work:
Using a blank start document and saving it after inserting the add-in. Once you save it, it loses its connection to the developer add-in.
If you start any document in debug mode and save it, it will NOT work the next time! If you want to make any changes to it, DO NOT start in debug mode.
I am not sure if any of these quirks are by design or if a Windows/Office update messed it up for me. Regardless, this is a very painful experience compared to developing VSTOs.

Launch trusted file on computer from cell in Excel

I have a cell in my spreadsheet that has a hyperlink to a script file (AutoHotKey) and I'd like to be able to launch said script by clicking on the cell in Excel. It works but I'm always presented with a warning:
Some files can contain viruses or otherwise be harmful to your computer. Would you like to open this file?"
I've done everything I can think of in the Trust Center to get it to allow me to open this file without having to confirm it.
Is there something in the Trust Center, or a bit of VBA, that I could use to allow access to this file (and others like it) without having to confirm my selection every time?
This solution should also work for newer Excel versions (e.g. 365)
Download Procmon:
https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx
Run Procmon.exe
Toggle Capture Events to off (File > Capture Events)
Clear the current events (Edit > Clear Display)
Toggle Capture Events on.
Click the desired hyperlink in Excel.
Turn Capture Events off.
Filter by Process=EXCEL.EXE (Filter > Filter ..) and click add
Filter also by Operation=RegQueryValue and Result=NAME NOT FOUND
Find the first entry with EditFlags in the path (use the search icon to search the filtered list)
Right click on that entry and select > Jump to (opens registry)
9 Add a new DWORD type named EditFlags with the hexadecimal value 10000.
In my case it was the key htmlfile_FullWindowEmbed
Modified from here
Please follow instructions on the following page to resolve your issue:
How to enable or disable hyperlink warning messages in 2007 Office programs and in Office 2010 programs
https://support.microsoft.com/en-us/kb/925757
Regards,
Please try to create/add the REG_DWORD type registry value “EditFlags”
(with the value data "EditFlags"=dword:00010000) under the registry
key location “HKCR\htmlfile_FullWindowEmbed\” on the same problem
client machine. After that, please restart the client machine and
then try to open the PDF file through the http URL link from the Excel
file again.
Solution found here

How do I make an Office 2013/2016 application run in separate process on Microsoft Windows?

I am developing a Excel plugin. It works all right for Excel versions before 2013. But a lot of features is broken when it runs against Excel 2013. I found the root cause is all windows are running in only one process in Excel 2013. Even if user explicitly launch a new window by double-clicking the shortcut on the desktop or by clicking the item in the start menu, no new process is created.
This results in the status conflict between processes. Status bar and ribbon is shared. For instance, when I update the status bar information in one window, the other windows' are also updated. When I check/uncheck a ribbon button in one window, the other windows' buttons are also checked/unchecked.
I think a possible solution is to change some configurations to make it work as before. But I found nothing relevant by searching on google.
Does anyone know how to make it or is there any other solution?
With Excel 2013, the default you have is to create a new window within the existing Excel process. In order to force the creation of a separate instance of the Excel process, you have these options:
Option 1
From the command prompt, run EXCEL /X and you will open Excel window as a new instance. The /X command switch forces the creation of a new instance.
Option 2
Right click on the Excel icon in Windows taskbar
Go down to where it lists the application
Hold down the ALT key on the keyboard and click "Excel 2013/2016"
It should give you this prompt, "Do you want to start a new instance of Excel?"
Click "Yes!"
Option 3
Use this technique to open an existing document directly:
Hold down Alt.
Right click Excel file.
Click Open.
Continue holding down Alt until the "Do you want to start a new instance of Excel" dialogue pops up.
Click Yes.
For more detail,please visit:
http://sqlblog.com/blogs/marco_russo/archive/2012/07/24/running-excel-2013-in-a-separate-instance-excel-powerpivot.aspx
re. "Right click on the Excel Tab in Windows taskbar keeping the ALT key pressed"
-This option is not available in Windows 10 with Excel 2016.
However, the Excel /X option works and a second change-undo buffer is created, as noted above, in the new process.

Resources