View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
vince vince is offline
external usenet poster
 
Posts: 1
Default Automation : Excel::Font : get_Font does not work

Hi all,
in very simple Excel Com Add-in, I want to change the font of the given
range by using Font-set_Bold(true). Unfortunately, I do not ga that
far. It throws when I do get_Font().

Object* ExcelAddinModule1::frumk(Object *rg)
{
Workbook *b;
Excel::Range *caller;
Range *incoming;

incoming=__try_cast<Range *(rg);
Excel::Font *ff=incoming-get_Font(); // <== never comes back !!!

}

On top of that; I would like to know from which cell my frumk function
has been called. Application-get_Caller thorws as well......

Any hint/suggestion is welcomed.
Cheers