Click here to Skip to main content
15,918,808 members
Home / Discussions / COM
   

COM

 
QuestionQueryInterface -- How come this code doesn't work? Pin
Popeye Doyle Murray5-Aug-03 4:16
Popeye Doyle Murray5-Aug-03 4:16 
AnswerRe: QueryInterface -- How come this code doesn't work? Pin
Stephane Rodriguez.5-Aug-03 5:49
Stephane Rodriguez.5-Aug-03 5:49 
GeneralRe: QueryInterface -- How come this code doesn't work? Pin
geo_m5-Aug-03 22:26
geo_m5-Aug-03 22:26 
GeneralRe: QueryInterface -- How come this code doesn't work? Pin
Steve S5-Aug-03 23:20
Steve S5-Aug-03 23:20 
GeneralRe: QueryInterface -- How come this code doesn't work? Pin
Popeye Doyle Murray6-Aug-03 2:29
Popeye Doyle Murray6-Aug-03 2:29 
GeneralRe: QueryInterface -- How come this code doesn't work? Pin
Stephane Rodriguez.6-Aug-03 3:40
Stephane Rodriguez.6-Aug-03 3:40 
GeneralActiveX - COM - for Excel Application control Pin
jauss4-Aug-03 23:20
jauss4-Aug-03 23:20 
GeneralRe: ActiveX - COM - for Excel Application control Pin
Steve S4-Aug-03 23:26
Steve S4-Aug-03 23:26 
To do this, you really need to learn VB! (OK, calm down, just kidding...)
There is a lot of information on the Excel Object Model, primarily aimed at VB programmers. What you need to remember is
(a) VB object is an interface, as far as you're concerned.
(b) Many methods take optional parameters (which you have to pass, but you can say they're not known)
(c) Check for errors at every opportunity.
(d) everything is done using methods, rather than directly accessing members (standard COM rules apply)

There is more helpful information in the MSDN Knowledge base, a search for "EXCEL" and "Automation" should get you some results you can work with.

By using the Workbooks "open" method, you can open an existing workbook (ie XLS file), and then by using that workbook object, you can get from its Worksheets collection, a specific worksheet; you can then get a range of cells from that object, and set or read values using methods.

Hope this is some help.



Steve S
[This signature space available for rent]
GeneralRe: ActiveX - COM - for Excel Application control Pin
Stephane Rodriguez.4-Aug-03 23:48
Stephane Rodriguez.4-Aug-03 23:48 
GeneralRe: ActiveX - COM - for Excel Application control Pin
jauss5-Aug-03 1:44
jauss5-Aug-03 1:44 
GeneralRe: ActiveX - COM - for Excel Application control Pin
Stephane Rodriguez.5-Aug-03 1:50
Stephane Rodriguez.5-Aug-03 1:50 
GeneralATL Language support Pin
Ahmed Birry4-Aug-03 12:13
sussAhmed Birry4-Aug-03 12:13 
Questionproperty or method ? Pin
Brian van der Beek3-Aug-03 23:48
Brian van der Beek3-Aug-03 23:48 
QuestionI come from China,Who can help me? Pin
yzq_66663-Aug-03 22:39
yzq_66663-Aug-03 22:39 
QuestionIs it possible to expose a VB 6 Form object type from an C++-made COM Server? Pin
emoscosocam2-Aug-03 12:29
emoscosocam2-Aug-03 12:29 
GeneralATL Registration in win98 Pin
zxb888888881-Aug-03 23:54
zxb888888881-Aug-03 23:54 
Generalsharedpropertygroup Pin
Pablo751-Aug-03 3:34
Pablo751-Aug-03 3:34 
QuestionEvery client call COM+ Server,Server create a new process for it? Pin
doisy31-Jul-03 21:02
doisy31-Jul-03 21:02 
Questionwhat is difference at COM and DLL? Pin
yanshiqi31-Jul-03 16:01
yanshiqi31-Jul-03 16:01 
Questionhow to access dll from remote machine Pin
sumeetkoshal30-Jul-03 21:10
sumeetkoshal30-Jul-03 21:10 
AnswerRe: how to access dll from remote machine Pin
valikac31-Jul-03 6:11
valikac31-Jul-03 6:11 
AnswerRe: how to access dll from remote machine Pin
MartinOrtiz31-Jul-03 12:18
MartinOrtiz31-Jul-03 12:18 
GeneralPlug-in for MS Outlook Pin
Atif Bashir30-Jul-03 16:58
Atif Bashir30-Jul-03 16:58 
GeneralAsyncrous Callbacks with Connection Points Pin
Giles30-Jul-03 7:22
Giles30-Jul-03 7:22 
GeneralRe: Asyncrous Callbacks with Connection Points Pin
Giles30-Jul-03 11:51
Giles30-Jul-03 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.