someone recently decided to move all Excel 2010 to Office 365... 64 bits Recently they realized that there were some ActiveX, legacy DLLs (written in vb6 !!) that were used in VBA. Of course they won't run in Office 365, so we are trying to migrate them to .NET 4.5. We did a small sample dll in C# (returning a string). It works fine with Excel 2010, doesn't in 365. (Error 429). Now the question(s) are : 1. Should it work / is possible to make it work ? 2. If so how ? 3. If not, what is proper way of doing it (preferably without dumping the VBA code) ?
Ok, the code in vba is very simple
like
Dim x as New Element365.Connection
Dim s as String
s = x.get_String
MsgBox s
and the code in c# just as well...(The dll's name/namespace is Element365)
public class Connection {
public Connection() {
}
public String get_String() {
return "This is a Test"
}
}
Thanks in advance