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.
Related
I am implementing a little macros on the VBA now. The version of the Office is 2016 (16.0.5032.1000), 32-bit. And there is an annoying thing in the VBA editor: I can't use the members list because it always disappears after a couple of seconds. I.e., I type a variable's name, then a dot and its members list appears. At this stage, all is OK. But, after two or three seconds it disappears and, at the same time, VBA editor highlights the line being edited with red color. I have tried to toggle the "Auto Syntax Check", but with no luck.
In my case, the 3rd-party program's template caused this issue. It was installed in the MS Word STARTUP directory and after its deletion the issue was gone.
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'
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.
I had a bunch of macros that I had in C:\Users\userx\AppData\Roaming\Microsoft\Templates that were always available in word 2010 but since upgrade to word 2013 I cannot run them. Word apparently does not automatically load them anymore. I used to just do alt F8 and pick from the list. I also had a few added to the quick options bar but they are gone also.
Searched this site and MS website and can't seem to find a solution. Is there another location that I need to move the files containing the macros to or is there some other action that I need to take so I can run them again?
My guess is this is already answered here and I am just not searching for the right things. My apologies if that is the case, please just point me to the appropriate post.
You can place a shortcut to the templates containing your macros in the following location
C:\Users\%username%\AppData\Roaming\Microsoft\Word\STARTUP
That will make your macros available whenever Word opens and restore the Alt+F8 functionality you're looking for. If you add toolbars to your templates, those will also automatically be attached to the Normal template when you open Word.
I'd like to allow my users to enter rich text (with bold, italic & underline, but probably nothing more than that) in an entry box on a VBA userform.
I don't want the user to have to install anything, so I need this to be something that leverages what Office or Windows already provide. The obvious candidate is the Windows built-in Rich Edit control.
I did a quick test and verified that I could create a window of this type from VBA, but what it then lacks is all the UI, etc. I could really use a leg-up as to how I then turn this into something usable.
I'm happy to consider alternative controls, so long as they're guaranteed to require no installation (other than as part of the Excel file containing the rest of my VBA code). It needs to work on Windows XP and up, and Office 2003 and up.
You could just try making a simple UI yourself. Add a command button to the form that will bold the selected text in the rich edit control. Or add a command button that will italicize or copy or paste. Your imagination is your limit.
I was checking Rich Edit Version 1.0 in Excel 2010, and I could access the text in the control.
For anyone searching for this still. As Gary McGill stated, "Microsoft InkEdit Control" is your best option.
Use the link below for a reference on the variables it can use:
https://www.thevbprogrammer.com/Ch10/10-06-RichTextBox.htm
With the Toolbox window open in Excel's Visual Basic editor, select Tools->Additional Controls from the menu. Check the box next to MSREdit Class. This will add the rich text control to your toolbox. From there you can add it to a UserForm.
I tested this control in both Office 2003 on Windows XP and Office 2010 on Windows 7. It looks like you'll still need to provide the UI for allowing the user to toggle bold, italics and underline.
It does accept a paste (via Ctrl+V) of some rich text that I copied from Word, but I couldn't figure out how to make it switch font formating while typing text into the control.
Putting this here just to rule it out...
It seems that the "Microsoft InkEdit Control", which is available from "Additional Controls" on the toolbox, is a superset of the Rich Text Edit control (as the name suggests, it also supports Ink).
It's hard to tell whether this is widely installed - it is on my XP/2003 machine, but not on my 2K/2K machine. (I've seen it said that it's installed with Vista and Win7, but clearly there are earlier versions too).
Anyway, I'm ruling this out because using the control results in a message at runtime to the effect that the ActiveX control is "unsafe" (presumably related to the well-known issue with the Rich Text Control itself).