Not able to open VBA editor in Outlook - vba

I am trying to open VBA editor from my Outlook. It suddenly stopped working. I already tried possible ways.
(From Shortcut) Alt+F11 - Not working, no error is coming.
(From Menu) Developer Tab -> Visual Basic Icon. Not working, no error is coming.
I am using Outlook 2013.
Could you please help me?

You may try to repair Outlook/Office. Also, make sure F-like buttons are not disabled on the keyboard.
See How to use Outlook's VBA Editor.

Related

Can't find project or library - Reference option cannot be selected & modules are frozen

I have this problem occur regularly with different workbooks. The file opens with:
Can't find project or library
I press Alt+F11 to open the VBA editor. I try clicking on References in the Tools menu but it doesn't do anything. I try editing the modules but I can't see any code and the windows are frozen. See attached file.
This is a guess, but sounds like there is a macro is running on 'open' of your spreadsheet, but the library it needs is missing (due to early binding, and a missing reference, often due to a different version of office).
Turn your macro settings to 'ask before running' - in office 265,
this is file-->options-->trust center-->trust center
settings-->macro settings-->disable all macros with notification.
reopen the file, but Don't enable the macro
press alt+f11 to enter the macro editor, then look at tools--> references for the
missing reference and try and fix.
Save and relaunch your spreadsheet, and enable macros

error "Macros is not available in this workbook or all macro may be disabled

I have developed an customized ribbon in excel and some macros using Visual Basics Script. Also, after completing when I send my excel to another computer along with add-ins I am getting error "Macros is not available in this workbook or macro may be disabled. Please be noted that I created add-ins and added the add-ins too but still I am getting this error. Kindly help me with this issue. Thank you.
In Excel, go to File > Options > Trust Center > Trust Center Settings > Macro Settings and select an appropriate setting to use.
Aside from what CLR wrote (and using the Excel file in the xlsm format), I noticed that if I run this VBS in a batch mode, it only gives me results if the batch is run "as an Administrator".

Start Word without any popups

I am about to create a VB.NET Application that is able to automatically format Word documents or change specifical things in it. But the applications stops regularly working because Word (working in Background, not visible) opens popup Dialogs, e.g. if the document is a .odt file, or was downloaded from the internet, or even the "Save File" dialog.
Is there any possibilty to prevent Word from opening any of these dialogs?
I haven't found anything in the MSDN Developer Reference concerning this subject either.
Does anybody have an idea how to do this? Thanks in advance.
I haven't done this with Microsoft Word, but I have done something similar in doing COM automation with Microsoft Project from .NET. Below is the code fragment that turns off all sorts of annoying pop-ups from MS Project:
mApp.DisplayAlerts = False
where mApp is Microsoft.Office.Interop.MSProject.Application

excel 2007 all commands/tabs disabled

I have a file that I have come across. It has a peculiarity that i have not been able to explain.
When the file is opened in excel 2007,all tabs and commands are disabled/grayed out. Even the protect/un-protect commands in the review tab are disabled. the file does not for a password on opening and does not contain any macros. This does not happen with any other file that I attempt to open. Can someone give me a lead as to what might be happening?
I figured it out.
If you press "Mark as Final" (Office button > prepare >mark as final), all commands and tabs are grayed out and disabled. There is an icon showing this on the status bar as well ( which I didn't notice earlier).
Clicking this combination again enables all relevant tabs.

Why does the VBA Editor open on its own sometimes?

I created a script in Outlook 2003 VBA that watches for new appointments, and sets them to tentative and no reminder as I create them. I find that seemingly at random, the VBA editor will open itself. It doesn't happen when I use the new script, but it did happen this morning when I un-hibernated my laptop, for example.
The editor doesn't pop up any runtime errors or highlight any lines in the script, it's just there as if I had pressed Alt-F11 to launch it. Sometimes I close other apps and see that it's been sitting back there for a while.
This behavior has only been occurring since I created this new script. Any ideas why this would occur?
As stated in, Microsoft Support Center:
"This problem occurs only if the Microsoft Visual Basic Editor window
is maximized."
Solution:
Un-Maximize Visual Basic Editor and close it.
And you are done!
If you have previously set breakpoints, it may be that you still have a phantom breakpoint. Try choosing "remove all breakpoints" and see if that clears the problem.
Check also that you have not chosen "Break on all errors" under options, and that your error handler is functioning properly.
Believe it or not, this is a known issue. Check out this MS Support link:
http://support.microsoft.com/kb/829059
I have the same problem and found it while I was looking for a solution. Since it gives no advice, I kept searching and came across your post. I will come back with an update if I find a solution.
The MS page linked by Jaquez hints at the answer; just make sure you don't run the editor maximized, and the problem should go away. If you restore it to a non-maximized state, then resize it to take up the whole screen, it should remember its position.
It's a pain if you only have a small screen, but on a normal large monitor it works fine, and solved the problem for me.
I have the same problem, except that it only occurs when I've gone in and unlocked the VBA project for editing and haven't restarted Outlook. It seems to open up when I get a new email (that's when my VBA runs) so basically I just have to restart Outlook and lock the project back up.
Sorry I don't know what's really causing it, but locking the VBA project should fix the problem...
My solution was to search for the .otm file of my VBA project. It was stored under data\microsoft\outlook. I closed Outlook and deleted the .otm file. Restarted Outlook and it was solved.
Just wanted to add that I was running into a phantom breakpoint issue with VBA in excel. Clearing all breakpoints did not work for me, but I resolved it as follows: Copy all content from offending module into a text file. Delete module. Re-create module. Copy back in all text. Save. Phantom breakpoint gone.