VBA Core

<p>General-purpose VBA techniques spanning the Office suite.</p>

Solved December 14, 2009

Side-By-Side COM Interop with C# and VBA

I'm not talking about calling a VBA COM from C#... the other way around! What I would like to do is call a C#…

thumb_up 6 trending_up 5
Solved November 26, 2009

Building SQL strings in Access/VBA

Occasionally, I have had to build a SQL string in VBA and execute it with Docmd.RunSql(). I have always built these strings by concatenating…

thumb_up 8 trending_up 14
Solved October 30, 2009

Get the week number from a given date

Examples: 'DD/MM/YYYY "1/1/2009" should give `1` "31/1/2009" should give `5` "1/2/2009" should also give `5` Format("1/2/2009", "ww") returns 6. So, how can I get…

thumb_up 22 trending_up 8
Solved October 22, 2009

Finding similar sounding text in VBA

My manager tells me that there is a way to evaluate names that are spelled differently but sound similar in the way they are…

thumb_up 18 trending_up 12
Solved October 9, 2009

Installing Office Customization

Name: From: file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto The customization cannot be installed because another version is currently installed and cannot…

thumb_up 31 trending_up 21
Solved September 17, 2009

VBA Shell and Wait with Exit Code

I am wrapping up an office application (VBA) that makes a call to a C# console application to perform some of the heavy lifting…

thumb_up 10 trending_up 6
Solved August 21, 2009

Use VBA to call a cellphone

About a year ago, a manager in another department brainstormed that I could code up some VBA to auto call me in the event…

thumb_up 10 trending_up 4