Any good VBA editor? - vba

I am just starting to learn VBA for Excel 2013. Just wondering if native VBA editor which come with excel 2013 is any good? I did some research, some people are saying that previous navtive vba editor function is insufficient, some people are saying that VB 6 is good enough for VBA.
Is there any better vba editor out there?

As far as I'm concerned, the built in VBE is the best way to go. It has not changed in the last 10 years or even longer, but it is tightly integrated into Excel and does everything you need, especially as a beginner.

some time passed since you asked, but maybe someone else might find it useful. I looked for the same thing and couldn't find anything good until I found Notepad++.
It makes analyzing the code much easier.

Related

VB.Net Formatting Output

I'm converting a project which started life as a PHP application to a Windows Forms Application in VB.Net, and am not sure how to go about formatting my output. The original, of course, simply outputs in HTML, and I've thought of using a WebBrowser control, but is there a better/more standard/any other way to display formatted output?
I'm new to Visual Studio, and Windows application programming in general. I've done a fair amount of work with VBA, so I'm familiar with the basics of the language, but still trying to figure out a lot of things. I think my question is beyond asking how to display output in VB.NET, as I'm familiar with the various form controls, such as label and textbox, but I googled extensively before posting here, and could not find what I was looking for. VB tutorials I've found are along the lines of "A variable is...." which I don't need. This site, while pretty basic, does have some interesting stuff, and is where I came across the WebBrowser control, but I'm just wondering if that's the best or only way to do what I want.

Vba Project Guidance

I have a general question and I'm not sure where to begin, literally. Can you please leave any direction at a fairly high level so I have the chance to try to figure it out for myself? Here's my initial plan, but here's the issue! I don't know where to start. Where would I begin with this? Would it be an Excel module? I need some direction guys!! Let me give you a quick run down of what we're trying to accomplish.
We start out with 2-3 customer specific spreadsheets with an account number + [static] file name.xlsx and about 7 generic template excel files where we use the data from the customer specific spreadsheets and save a copy of each of the template files in the customers store folder.
What I'm trying to figure out if VBA is the direction that I need to be going with this or if there is another method that would accomplish the same goal or be more efficient at getting it done. My thinking at this point is open one of the customers files, save the active workbook file path as a string (this would contain the file directory, division, customer number and customer name), split the string of the file path and save the information that I need as variables, open the appropriate template files based on division number, probably run a couple recorded macros then re-save the files using the account number in the appropriate directory. If there's anything else I left out for this to make more sense, please let me know and I'll re-edit the post. Thank you in advance for any guidance!!
I don't think you should use Access or VSTO - I'll explain why, then offer a practical way forward.
Access is way over the top for what you want to do: most people find it much easier to write code in Excel VBA (I speak as a trainer with 20 years of experience, who is a guru on both packages).
Visual Studio Tools for Office was Microsoft's attempt to get the business world to stop using VBA in Excel, and use the much more robust VSTO within Visual Studio. It's a great idea, but unfortunately not many people seem to be adopting it. In computing it's rarely a good idea not to go with the flow (and anyway, the learning curve for VBA is shorter than that for VSTO, IMHO - hope that's enough acronyms in one sentence!).
As to the practical solution: I've just finished writing a fairly large online tutorial in Excel VBA, which is at exactly the level you need, I think.
Good luck!
Since you are dealing with XLSX files then you are in Office 2007 or 2010, so you could use Visual Studio Tools for Office. This will allow you to use the .Net framework and C# or VB.Net in Visual Studio to get a better development experience than VBA. You could add your own ribbon and buttons to Excel to help accomplish your tasks.

Ways/Sources to learn writing macros for Microsoft office word

Please someone help me to find sources to learn writing macros for MS Office Word. I am ended up with getting web pages for only "Recording macro" explained in different ways. While seeing those web pages i got to remember the sentence
"Sometimes people come up with awful analogies in an effort to describe a concept
which is too difficult for a regular person to understand.An infinite number of
monkeys hitting at an infinite number of typewriters for
an infinite amount of time will eventually produce all works of Shakespeare."
from infinite monkey theorm. Recording macro is very easy one. Most of the writers ended up with writing this article.
Please someone suggest me to learn writing Macros for MS Office Word. I am using Word 2007.
Since you are already familiar with the syntax, I suggest a site like this (its a cookbook approach): http://www.thezcorp.com/VBACodeSamples.aspx
Also, you can still press F2 to access the object browser and then filter the selection to just the Word library.

Dynamic Word autocomplete or autosuggest in VBA?

Has anyone come across a VBA (or other) program for implementing dynamic autocomplete in Word? Emacs has had this for decades, and it would be great to have it in Word. I see others in this forum are looking for code for Android, so this topic isn't completely obscure. It would be great to type ac* - and get Word to fill in "across" based on previous text.
Seemingly both Openoffice and MS Office has some sort of Auto-complete. I don't often use word processor though, but I hope it helps.

Using the Office Interop for Word and Outlook 2007 in VB.NET

I need interop in my programs to automate several functions in Word and Outlook. Does anyone know a good place to start. My goal is to kick off a mail merge, create several different files and save them accordingly, then e-mail the different files to different people based upon who needs what. Any help learning how to use the interop properly would be greatly appreciated.
I am currently using Visual Studio 2008 and Office 2007 and use vb.net to write my programs.
A good way to get started is to use the macro editor to record the steps you are trying to perform. You can take the generated macro code and modify it for your purposes to suit. Click on the names of functions and variables of which you do not know the purpose and hit "F1" to get context specific help.
Add COM references to Outlook 12.0 Object library and Word 12.0 Object library.
This web page really helped kick me off: http://support.microsoft.com/kb/316383
Then, by recording macros you'll expose a lot of the stuff you'll likely want to work with. Word of warning, however, is that not everything exposed in VBA (macros) is accessible within VB .NET. I don't know why this is, but I've actually had to construct and execute a macro from VB.NET, written in VBA, within Excel to accomplish something that seemed ridiculously easy if it weren't for the strange disconnect between the two.
Some good info on Mail Merge: http://support.microsoft.com/kb/258512
Here's an article with some basic steps to get you up and connected with Outlook's Interop: http://support.microsoft.com/kb/313787
Hope this helps. I'll keep an eye out for questions from you here--I'd say I know quite a bit when it comes to interop.
You might want to start here: http://msdn.microsoft.com/en-us/office/bb266408.aspx.
There are a number of tutorials.