Hello everybody,
I have a trouble with getting ModelMeasureNames collection of Power Pivot model by using Excel/VBA. I can't find any function that would allow me to do this. I can get the Power Pivot model of the workbook by ActiveWorkbook.model. But this model object does not have any function that would allow me to get ModelMeasuresNames collection. The only thing I find is that there is workbook event "Private Sub Workbook_ModelChange(ByVal Changes As ModelChanges)" and the variable Changes allows me to get the ModelMeasureNames collection by Changes.MeasuresAdded. But this is not relevant to me as I am not catching events. I am using Excel 2013. Any help and suggestions are very appreciated.
Best regards,
Vladimir
I have a trouble with getting ModelMeasureNames collection of Power Pivot model by using Excel/VBA. I can't find any function that would allow me to do this. I can get the Power Pivot model of the workbook by ActiveWorkbook.model. But this model object does not have any function that would allow me to get ModelMeasuresNames collection. The only thing I find is that there is workbook event "Private Sub Workbook_ModelChange(ByVal Changes As ModelChanges)" and the variable Changes allows me to get the ModelMeasureNames collection by Changes.MeasuresAdded. But this is not relevant to me as I am not catching events. I am using Excel 2013. Any help and suggestions are very appreciated.
Best regards,
Vladimir