VBA excel Office 2016 Mac - Tools References not available - vba

I cannot find the tools references button in my Exel VBA Editor (Office 2016 for Mac). It is supposed to be in the corner down left as marked below.
Also described here.
I googled for almost two hours now. Any suggestions?
Note: It's different to Office for Windows!

It's in the tools menu - top of the monitor when you have the VB editor open.

Related

How do I stop MS access breakpoints in vba editor from disappearing after clicking "Compact and Repair Database"?

I'm new to Microsoft Office Professional Plus 2013 Access.
I am developing an application using:
-Microsoft Office Professional Plus 2013 Access
MS access breakpoints in vba editor disappear after clicking compact and repair
I've was searching the internet quite a bit in order to determine how I can prevent the aforementioned problem, but I could Not find any solution.
How do I stop MS access breakpoints in vba editor from disappearing after clicking "Compact and Repair Database" ?
All Breakpoints and Bookmarks will disappear upon executing "Compact and Repair Database". This is a built-in behavior and it cannot be altered.
The answer by Gene is correct.
As a workaround you can use the Stop command, which acts like a "permanent" breakpoint.
E.g.
If <unexpected error condition that you want to analyze at runtime> Then
Stop
End If
Instead of Stop, which may be a bit annoying, have a look at Debug.Assert, which will allow you to have a 'conditional Stop'

Office365 Excel access to the Tools -> References menu for RegExp library

This might sound like a simple question but I'm creating a macro in VBA that uses regular expressions. It turns out VBA doesn't inherently support regex and I need to add a reference to 'Microsoft VBScript Regular Expressions 5.5' to gain access to regex functions in Excel.
All my searching online tells me you need to go to Tools -> References menu to add/remove references that can be used in VBA.
The Tools -> References menu in Excel as obtained from Google
For the life of me I can't see where the Tools -> References menu is in my Excel. I've enabled the Developers tab and it's not there.
This is what I see
If it helps, I'm using Excel on Office 365 (which Wikipedia tells me is Office 2016) on a Mac. Please help me find how I can access the References menu in Excel (whether or not it can be accessed via Tools -> Menu or some other way). Thanks.
You need to open the Visual Basic editor. On the ribbon in Excel, select Developer, then Visual Basic. This will open the VBA interface in a separate window. On this new window, you should see the Tools -> References option.
You need to open the Visual Basic (for applications) Editor, or VBE. On the Developers tab, look for "Visual Basic". It should be the left-most item.
Or, you can press Alt-F11.
The VBE is where you'll find the Tools menu, and the References submenu.

Does Word Template(.dotm) VBA supports in Mac Office 2016?

I have created a Word Template(.dotm) file using VBA. It create a dropdown menu with buttons. It is working fine in Mac Office 2011.
Now I am trying to create DropDown menu using Mac Office 2016 but it doesn't create any dropdown menu.
Can anybody suggest me whether it supports in Mac Office 2016? Can I create dropdown menu in Office 2016 same as I have created using Word Template in Office 2011?
Please guide me.
Let me save you some time, Nanji. No, what you're trying to do is not supported in Word 2016 for Mac. If the VBA buttons and menus on your 2011 .dotm template are important to you, you should just continue using 2011 and check back in for news about Word 2016 in a year or so.
In my experience, about 50-75% of the stuff I built into my Word 2011 template is inoperable in Word 2016.
Word 2016 doesn't support floating toolbars or ribbon customization, and it doesn't have a fully functioning VBA editor, so it's not even possible to re-create your 2011 .dotm template from scratch within 2016.
Adding custom dropdown menus and most of the other UI customizations you are used to from Word 2011 are virtually impossible in Word 2016.
But wait, it gets better: 20-30% of the VBA code for those macro buttons you want to appear in the drop down menu will probably also be broken or buggy in Word 2016.
You may find advice elsewhere on the internet suggesting that you can build a new .dotm file on a WINDOWS machine with a current copy of Word for Windows, then load .dotm that in your MAC version of Word, cross your fingers, and use trial and error to see what, if anything, actually still works on your Mac version of Word 2016, but you will just end up tearing your hair out trying to do this. Trust me, I've been there.
You might make a tiny bit of progress doing things that way (build/code in WinWord then test in MacWord)--I managed to put some macro buttons on a custom ribbon tab using instructions I found on Microsoft's Mac Word Insider forum--but it will take forever to do something that took 5 minutes in Word 2011, and at some point you may reach a dead end without actually being able to finish what you're trying to re-create in Word 2016.
You may also find promises that Microsoft is "working on it" and that they definitely have plans to add these UI features back into Word 2016 for Mac, but that day may never come.
I've been checking the new releases religiously since January 2016--a full year now, woohoo!--and at one point they said that all the missing features would be added back by summer 2016, but so far all they've added is the ability to put a few buttons on the Quick Access Toolbar. Those QAT buttons, by the way, are limited to built-in Word functions, not custom dropdown menus like you want to do, or even customized buttons for individual VBA macros.

Visual Studio 2013 close all Tool Windows

I would be delighted, elated even, if someone could tell me how to close every tool window in Visual Studio 2013 in an automatable fasion. Solution Explorer, Output Window, and Toolbox are all examples of the countless tool windows that can accumulate on my screen. I'm using Autohotkey to try to close them, but it has become impossible to do through blind keyboard shortcuts (AFIK.)
I'm not opposed to a plugin but something with just the keyboard would be ideal.
Thanks so much!
If you want to do it with Autohotkey, take a look at WinClose as MCL suggested. You might also need SetTitleMatchMode.
I'm still using Visual Studio 2010, but with some minor adjustments it should also work in Visual Studio 2012:
SetTitleMatchMode, 2 ;No need to enter the full title
Enter:: ;press enter to close all tool windows
WinClose, Microsoft Visual, Find and Replace
WinClose, Microsoft Visual, Solution Explorer
WinClose, Microsoft Visual, Class View
WinClose, Microsoft Visual, Property Manager
;...
Sleep, 1000
Return
Esc:: ;Use Esc to exit the script
ExitApp
Use "AU3_Spy.exe" form your Autohotkey folder to find the WinTitle(part) and some visible text.
Layouts-O-Rama is my take on the problem. To be found in the vs gallery here:
http://visualstudiogallery.msdn.microsoft.com/35966ad9-430f-4ad7-9186-4394b784e36c
Basically the addin saves tool window layouts. You could simply save a layout with all tool windows closed and assign a hotkey to it. To go even further you could save another layout with all the tool windows you like opened and assign a different hotkey to this.

Visual Studio Macros Editor

Is there a way to change the macro editor from this default one:
It feels like such a downgrade from Visual Studio 2010. Can I configure Office to use that instead?
no there is no way to my knowledge, VS.NET does not support VBA.
what you can do if you are creating a new word or excel file is create a managed office solution, having installed the VSTO 2010 (Visual Studio Tools for Office) you are able to create managed documents which are handled inside VS 2010 and the automation language is not VBA anymore but C# or VB.NET instead.
this is a viable solution for new files, for legacy files either you convert them if they are small or you keep old VBA code and old VBA editor as in your picture.
Mark I wish MS made a tool to convert from the old format to the new one! :(
There are things you can do to improve it:
Tools > Options > Editor :
Uncheck "Auto Syntax Check"
Tools > Options > Edit Format:
Customize the colors and font
Install the VBA Rubberduck:
http://rubberduckvba.com/
The RubberDuck does auto-indent for you. It also helps you with "unit testing, source control, from code inspections, and refactorings"