Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-03-2012, 03:56 PM
macropod's Avatar
macropod macropod is offline C# / vb.net & vba? Windows 7 64bit C# / vb.net & vba? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi tinfanide,

The various versions of VBA can be likened to dialects of VB6. Because VBA is application-specific, Word, Excel, Access, etc will each have will have methods, etc that aren't found in the others. VB6 won't have any of these application-specific extensions.

The MSDN pages will provide examples in various languages, because MS supports them (eg via Visual Studio), not because they're interchangeable.

Whilst you could add C# code to a VBA module, VBA wouldn't know what to do with it; you'd have to pass the C# code as a string or a series of strings to a C# compiler. And that entails automating the C# compiler.

Code written in C#, VB6, VB.NET, etc, can be used to control Office Applications by hooking into the application's VBA.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Other Forums: Access Forums

All times are GMT -7. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft