VBA list of errors in IDE - vba

I'm working with the VBA IDE provided with Access, and although when there's an error the offending line of code turns red, I can't for the life of me find a way to view the error.
Note that my question is not how to fix this error, but simply how to view the error that is making this code red.
There is no option to show the error window, and I'm at a loss. Any help is welcome!

Related

Word Save Template command returning error

I recently discovered the blissful convenience of being able to use the File, Save command from within the VBA Editor window to save the currently attached template without having to actually be in the template or close out of Word.
I thought it would be nice to have this command available on a Ribbon Tab or the QAT or even a keyboard shortcut, so I first added the Save Template command to a Ribbon Tab. But when I clicked on the tab, nothing happened.
I thought perhaps I needed to tweak things a bit with a macro, so I recorded a macro and clicked on the command, to see what the VBA statement would look like.
It looks simple and straightforward enough, very similar to a bazillion other "ActiveDocument" macros I have stored that run without any issues:
ActiveDocument.AttachedTemplate.Document.Save
But when I run the macro, I get the standard "Runtime error" message, with no hint as to what is wrong.
I cannot find any documentation regarding this command in any of my source material or anywhere on Google, nor can I find any discussions about it.
Any ideas what's missing here? Thanks in advance!
As I discovered, and Cindy Meister confirmed, the following works:
ActiveDocument.AttachedTemplate.Save
It will work even if the template is closed. The version that you got from the Macro Recorder, ActiveDocument.AttachedTemplate.Document.Save works only if the template is open. The version above works whether it's open or not. I don't program much in Word, but it looks like a template's Document object/property is instantiated when the template is opened and otherwise is nothing.

Error when saving files - Brackets

I'm totally new to stackoverflow and programming world and I'm an undergraduate from sri lanka. These days, I'm studding html,css,javascript,bootstrap etc using Bracket editor. But when I trying to save my works using bracket editor following error has occurred,
An error occurred trying to save the file
C:programfiles(*86)/brackets/sample/root/myProject/css/main.css. The permission do not allow you to make modification.
Then I have change the permission of folder to all but same error has occurred.
If anyone know how to fix this please help me.
Anytime this happens.. as in "not having permissions"... always before opening the app, right click and run the app as administrator..9/10 it will allow you all the permissions you want.

How do I disable instant syntax error highlighting in Visual Studio 2015

I got Visual Studio 2015 Professional several months ago. One thing that has irked me ever since is how the syntax error checking fires off immediately after typing, whereas in 2013 the error checks only happened after you have moved away from your current line of code.
This is kind of difficult to explain what I mean. Essentially, if I type a quotation mark every single bit of code below that point immediately switches to string and everything highlights as errors. Halfway through creating a variable, Visual Studio is highlighting it saying it is an unused variable.
Is there a way to turn this feature off? I have been poring over every options menu I can find, disabling options one by one and I cannot find a solution. I have also googled ad nauseum and searched for a solution but it is either difficult to search for or nobody else minds. I find this feature highly annoying because the editor is screaming at me before I have even progressed halfway through a line of code.
Any help would be greatly appreciated
Rather than referring another website, I would suggest simple solution below:
Tools >> Options >> Text Editor >> General >> Show error squiggles
uncheck "Show error squiggles" checkbox
Ok, maybe this link can help you.
https://blogs.msdn.microsoft.com/zainnab/2010/05/01/how-to-turn-off-automatic-intellisense/
Also You can change colors for that error highlights (cheat your mind),
look for the error color and choose one equal to the back color of the editor.
https://msdn.microsoft.com/en-us/library/hh923906.aspx
I hope this can help you

VB.NET Call Stack in Microsoft Visual Studio - Wrong Line of Source Highlighted?

I seem to be having an issue using the call stack viewing functionality of Microsoft Visual Studio 2010 Professional.
During debugging, my application crashed, so I inspected it with the call stack view.
The offending line was contained within called showInDGV(...) nothing exciting, just trying to read an uninitialized variable or something...
All well and good, so next thing I did was check to see where the call to showInDGV() was coming from, because it is called from multiple places.
When double clicking the entry in the call stack (the entry that should highlight a showInDGV(...) subroutine call), the IDE highlighted the incorrect line.
Instead of highlighting showInDGV(), it highlighted the next non-empty line below it, which was End Sub
Clearly something is wrong here....
So I inspected the call stack further - turns out Visual Studio is highlithing the wrong line whenever I try to debug using the call stack.
This isn't actually the first time this has happened. In fact, it seems to always happen when working on a large project.
Initially, the call stack works properly and highlights the correct line, but at some point it gets messed up, and then it never seems to fix itself, even after closing and re-opening the program.
Does anyone know the cause/solution to this issue? I figure it might be some sort of corruption in the visual studio project, and I considered copying and pasting the source code into a new project but even if that fixed it, it wouldn't prevent it from happening again.

Can I get the VBA syntax check error without the automatic syntax check?

When I write VBA code, I tend to cut and paste variable names or other bits of code. This results in frequent syntax check errors that result in the message box popping up. That's annoying, and I'm aware that I can turn it off via Tools > Options > Editor > uncheck Auto Syntax Check.
This doesn't seem to prevent the VBA editor from actually checking my line - it still turns red. I don't mind that behavior, because it doesn't interrupt anything. And it does let me know if I do, in fact, have some sort of problem after I'm done with the line, which is nice. Unfortunately, I'm not always smart enough to diagnose the error on my own, and the text in the message box is actually helpful. But I've turned off the message box!
Is there a way for me to display that error, short of temporarily turning the message box on?
You can compile, with Debug>Compile, which will bring up the same message. IF there's more than one compile error you might have to deal with that one first.
This comment is for users of Visual Basic for Excel on a Mac.
I am using Visual Basic in Excel verion 16.14.1, (the latest version as of July 2018), as part of Office 365 on an iMac Pro, running High Sierra.
Under the Tools tab of the Visual Basic editor, there are only three choices:
References...
Macros....
VBA Project Properties......
None of these sub-menus lead to "Options", nor to anything which allows you to turn on and off "Auto Syntax Check"
Instead that option can be found in Excel ==> Preferences tab. However. checking or unchecking the box does not change the behaviour. In both cases, the text turns red on a syntax error, but in neither case does the annoying pop-up window appear.