Excel links to another workbook break after clicking Enable Editing - excel

I have an excel workbook open which is linked to a separate excel workbook with no issues. I then open the linked workbook however can’t edit it until I ‘enable editing’. When I do this, the links in the first workbook (and all other workbooks in the chain) break – i.e. they say REF.

Related

How can I list all worksheet tab names in another workbook in Excel?

I am working with 40+ workbooks and need a list of every named tab in each one, for a cataloguing project. The only macros and instructions I found require creating a formula or macro for each workbook.
I have one file designated as the macro file. In it are two functions, one to sort tabs by color and one to sort them alphabetically. Both work on whatever workbook I have active, as long as the macro workbook is open in the background.
How can I list all the sheet names in the active workbook, using code from the macro workbook?
I don't mind running the command once for each workbook, but I don't want to create a macro in every file.
You can use Workbook.Sheets to access the sheets of a workbook.
Likewise, you can use Workbooks to access the open workbooks.
You can create a nested pair of For loops to iterate through all workbooks, and then all worksheets.

Excel Workbook Modules Not Appearing in Workbook Macros

I have a macro-enabled workbook which contains several modules, each module containing a number of macros. My issue is that I open the macro list from the developer tab and no macros for my workbook are there anymore. When I open VBA, I still see them there and associated in the tree to the workbook/project. The macros are still in the modules as well.
Background: Today, after a bit of editing in one of the macros, I closed VBA, got a prompt about a project being reset, I clicked ok. Problems began. All macros in the workbook used to show up from the macros prompt in the developer tab.
Project/Workbook tree with associated modules containing macros; no macros showing in workbook
I think I realized what the problem was. I was having an issue with running a macro to which I decided to recover an earlier version of the workbook and saved over the original. Well, the macros were still hyperlinked to the recovered version of the workbook that had the name extension that included the date/time, therefore "belonging" to that workbook.
My fix: I right clicked the macroed object (button), assign macro, and deleted the hyperlink text and kept only the name of the macro. One by one, all macros were recovered to the workbook. :)

Same Workbook Hyperlinks keep breaking - Excel

I have a workbook with a mass hyperlinks; all are referring to sheets in the same workbook but they keep breaking once I save the file and reopen it.
The workbook is on a server machine just in case if this info is relevant to the problem.
I know I could use the hyperlink formula but its not applicable in my case so what's causing the hyperlinks to break constantly ?

Excel Open 2 Workbooks at the same time

I have a workbook that I open with vba coding. There are several different userforms to input data and get reports out of this workbook.
It seems that while this workbook is open, and active, I cannot open, to look at and/or edit, an unrelated excel spreadsheet through Windows Explorer. One of my users asked me if while this program is running if she could look at (without closing the active workbook) a different spreadsheet. It has nothing to do with coding such a request into the active workbook, its more for convenience i.e. not having to close this one and open that one.
Is there anything I can do to facilitate this request? Is there some vba code I can use in my active workbook that allows or gives Excel permission to open more than one workbook?
I think you'll find it is when a Userform or any other Excel dialog-based object is open, then you cannot simply "double-click" on an another workbook to open, as Excel is busy and focus on the open dialog screen.
However, if you start another instance of Excel (Start -> All programs -> Microsoft Excel) and then open the workbook from within the new instance, then you work with additional workbooks.

Adding Module through code

I have a master workbook containing a macro which opens another workbook containing a demand forecast. The workbook opened through the macro is downloaded from a customer portal and is all new every day without possibility of editing it beforehand.
The macro then loops through the information and creates new readable and more intuitive worksheets. However, on a few of these worksheets I would like to add some event-driven code to give tooltips when mousing over or selecting cells.
Is there any possibility (without installing add-ons from vanilla Excel 2010) to add code to worksheet objects created during a macro?
The layout of the processed workbook is more or less static, so I was wondering if I should create a template file and then copy the input into it. That would allow me to have coded the events before data is added. Is this the best possibility?
As Dan pointed out, you could use Application.VBE.ActiveVBProject to programmatically add code modules to a workbook. But doing this requires more lenient Macro security settings (which are set to untrusted, by default) and this is not recommended.
When I have to do something similar, I use three workbooks:
The data containing workbook
This book has no macro functionality
A template workbook containing the necessary macros
A macro enabled workbook to facilitate the transition.
Use workbook #3 to open workbook #1 and copy its data into workbook #2. Save a copy of workbook #2 and close it. Repeat this process as necessary.
It isn't the prettiest solution, but it keeps your code modular.

Resources