Edit a .xls add-in

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi, I am using Excel 2007 and wish to open (holding shift) a .xls add-in file.

I get a message from excel stating that :

"Cannot open Microsoft Office Excel Add-In for editing. Please edit the source document instead."

There are tabs in this add-in that contain data I need to change. I have the password / access required as it is an internal product. Just this error is preventing me from accessing the .xls as a workbook.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
You mean an xla file?

Open Excel normally and load the add-in if it isn't already. Select the add-in's VBA project in the Project Explorer window, and in the Immediate window, enter

Code:
Thisworkbook.IsAddin=False
 
Upvote 0
In the VBA window
Expand the Addin Project - Microsoft Excel Objects - ThisWorkbook
click View - Properties Window
Find the property - IsAddin
Change to False
click SAVE.

Now you can open it as a workbook.
But of course it will no longer function as your addin..

make sure to set it back to true and save when done.
 
Upvote 0
Nope it is a .xls but think in the auto_open it has been defined to open as an addin.

Just started to use the immediate window - this is a way of running quick changes to a VBA project and change variable values? (any help appreciated)

How could I print every active (declared) variable with values and type?
 
Upvote 0
this is a way of running quick changes to a VBA project and change variable values?
Yes, for any variable in scope when the code is paused; e.g.,

Code:
myString = "Bob"
 
set myRange = range("a1:b3")
 
Last edited:
Upvote 0
And is there any way to debug.print every declared/used variable along with type (boolean, string, byte) and value?

This would be very useful when debugging!
 
Upvote 0
None I know of, but you can hover over variables to see their values, or look in the Locals window.
 
Upvote 0
The code worked thanks :) now have access to all tabs.

With regards to 'locating' the property - I do not get this option?

Do you mean locate it in the code, or by exploring the properties of an actual object?

The types command in the immediate windows did the trick, just asking for my own education.
 
Upvote 0
Press F4 in the VBE to see the Properties window.
 
Upvote 0

Forum statistics

Threads
1,203,078
Messages
6,053,402
Members
444,661
Latest member
liamoohay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top