Click here to Skip to main content
16,016,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automating Excel Pin
Anonymous24-Aug-05 3:07
Anonymous24-Aug-05 3:07 
GeneralRe: Automating Excel Pin
David Crow24-Aug-05 3:19
David Crow24-Aug-05 3:19 
GeneralRe: Automating Excel Pin
Anonymous24-Aug-05 23:01
Anonymous24-Aug-05 23:01 
GeneralRe: Automating Excel Pin
David Crow25-Aug-05 4:31
David Crow25-Aug-05 4:31 
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 4:37
Anonymous25-Aug-05 4:37 
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 4:55
Anonymous25-Aug-05 4:55 
GeneralRe: Automating Excel Pin
David Crow25-Aug-05 4:58
David Crow25-Aug-05 4:58 
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 20:35
Anonymous25-Aug-05 20:35 
I think so.

As I saw in the VBA "code", it is called like that:

ActiveWorkbook.VBProject.VBComponents.Import

What I did: I call "ActiveWorkbook" to get the active workbook. This gets stored in the pdispWorksheet, and is used for "VBProject". (I know this pdispWorksheet is confusing, but its just for testing).
I also tried to take the pdisp of my newly added Workbook directly, but it gets me the same result.

If I use pdispApplication or something like this, it shows me: Unknown method. If I change DISPATCH_PROPERTYGET to something else, I get: wrong member.
So, I thought it should be ok, how I am calling the method. But I dont see any logic why I get exceptions all the time. Theres not much more in this Invoke...


DKT
GeneralRe: Automating Excel Pin
Anonymous25-Aug-05 22:08
Anonymous25-Aug-05 22:08 
Generalload image Pin
dave2k23-Aug-05 1:06
dave2k23-Aug-05 1:06 
GeneralRe: load image Pin
toxcct23-Aug-05 1:09
toxcct23-Aug-05 1:09 
GeneralRe: load image Pin
ThatsAlok23-Aug-05 1:54
ThatsAlok23-Aug-05 1:54 
QuestionCombo box in a menu !!! Is it possible ? Pin
UsmanMKhan23-Aug-05 1:01
UsmanMKhan23-Aug-05 1:01 
AnswerRe: Combo box in a menu !!! Is it possible ? Pin
toxcct23-Aug-05 1:09
toxcct23-Aug-05 1:09 
GeneralI Agree with you but ..... Pin
UsmanMKhan23-Aug-05 2:25
UsmanMKhan23-Aug-05 2:25 
GeneralRe: I Agree with you but ..... Pin
toxcct23-Aug-05 5:33
toxcct23-Aug-05 5:33 
GeneralRe: I Agree with you but ..... Pin
UsmanMKhan24-Aug-05 21:10
UsmanMKhan24-Aug-05 21:10 
GeneralRe: I Agree with you but ..... Pin
UsmanMKhan24-Aug-05 21:10
UsmanMKhan24-Aug-05 21:10 
GeneralWindows Event Messages Pin
Hachaso23-Aug-05 0:34
Hachaso23-Aug-05 0:34 
GeneralRe: Windows Event Messages Pin
ThatsAlok23-Aug-05 0:43
ThatsAlok23-Aug-05 0:43 
GeneralRe: Windows Event Messages Pin
Hachaso23-Aug-05 0:58
Hachaso23-Aug-05 0:58 
GeneralRe: Windows Event Messages Pin
ThatsAlok23-Aug-05 3:35
ThatsAlok23-Aug-05 3:35 
GeneralRe: Windows Event Messages Pin
Hachaso23-Aug-05 21:17
Hachaso23-Aug-05 21:17 
GeneralRe: Windows Event Messages Pin
MailtoGops23-Aug-05 4:13
MailtoGops23-Aug-05 4:13 
GeneralLoadImage (newbie) Pin
dave2k23-Aug-05 0:05
dave2k23-Aug-05 0:05 

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.