var != Dim – or why Visual Basic is the right choice for working with Microsoft Office


I just came across a great post from Scott (as so many of his are) which starts with an explanation of why C# var is not the same as Dim in Visual Basic ( var <> Dim ? ) but turns into a great example of why Visual Basic is a much better choice for working with Office. The post and the comments that follow are all well worth a read. Or….just compare the amounts of code below 🙂 I will let you guess which is C#…

 

image image

Skip to main content