Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having trouble guessing the data type of some of the
automation functions. I am controlling Excel from a C++ app using excel.exe to create wrapper classes for Application, Workbooks etc. example: in C++ the Sheets.SaveAs code reguires before, after, count, etc as arguments. I know what they all mean from the VBA object model help; but are they shorts, longs etc to cast the colevariant you have to use?? Does anyone know where I can get hold of an online reference so I can look these things up quickly??? Regards, Kevan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the help file in Excel VBA shows all the arguments to be variant.
-- Regards, Tom Ogilvy "Kevan Hanson" wrote in message ... I am having trouble guessing the data type of some of the automation functions. I am controlling Excel from a C++ app using excel.exe to create wrapper classes for Application, Workbooks etc. example: in C++ the Sheets.SaveAs code reguires before, after, count, etc as arguments. I know what they all mean from the VBA object model help; but are they shorts, longs etc to cast the colevariant you have to use?? Does anyone know where I can get hold of an online reference so I can look these things up quickly??? Regards, Kevan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In VBA thats the case, however in c++ if you initialize an
application object as "oExcel" for example, then the following code references a WorkBook (provided oBook and oBooks have been initialized). oBook = oBooks.get_Item(COleVariant((short)1)); whereas oBook = oBooks.get_Item(COleVariant((double)1)); fails, (obvious: but some are not; I was in a hurry) what I am trying to find is a reference that indicates what data type each argument is supposed to be. I know one exists because I have seen it before, but not needed it until now. thanks for the reply. Regards, Kevan -----Original Message----- the help file in Excel VBA shows all the arguments to be variant. -- Regards, Tom Ogilvy "Kevan Hanson" wrote in message ... I am having trouble guessing the data type of some of the automation functions. I am controlling Excel from a C++ app using excel.exe to create wrapper classes for Application, Workbooks etc. example: in C++ the Sheets.SaveAs code reguires before, after, count, etc as arguments. I know what they all mean from the VBA object model help; but are they shorts, longs etc to cast the colevariant you have to use?? Does anyone know where I can get hold of an online reference so I can look these things up quickly??? Regards, Kevan . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 compatability, VBA Reference, MicrosoftOffice12. Object Library | Excel Discussion (Misc queries) | |||
Setting a reference to an object library - do our customers have to do it too ? | Excel Programming | |||
VBA References - when is Office Object Library Reference set? Best practice re. Early/Late binding ... | Excel Programming | |||
Object Library 11.0 | Excel Programming | |||
Excel Object Library Reference | Excel Programming |