LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.dotnet.framework.interop,microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default REPOST: VBA Acessing Member Variable in C# Com AddIn

Is it possible for VBA in Excel to assign to a member variable of a
class in a C# COM AddIn? In C# I have:
namespace mySpace
{
[ClassInterface(ClassInterfaceType.AutoDual), ComVisible(true)]
public class myClass : IDTExtensibility
{
public double myDouble;
public myClass(){}
}
}

in VBA I have:
Dim aClass As mySpace.myClass
Sub Testing()
Set aClass = New mySpace.myClass
aClass.myDouble <--------------------This errors 'unkown member'
End Sub

Is there a way to access member variables in my class or must I write
accessor functions?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Acessing Member Variable in C# Com AddIn Matthew Wieder[_3_] Excel Programming 1 June 15th 06 04:25 PM
acessing text files using excel vba srkumar[_2_] Excel Programming 1 April 24th 06 10:18 PM
How to identify variable workbooks in an excel Addin Martin in Frisco Texas Excel Programming 10 September 15th 05 08:05 PM
Public variable is reset after addin macro completes - thread/focus pblm? hscowan Excel Programming 1 February 19th 04 09:07 PM
Password prompt for acessing a workbook «Â¤Æ¡­ Excel Programming 1 October 2nd 03 12:35 PM


All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"