So I am tring to use a macro to enable the Title only when the report is exported to Excel. To be more specific i have added the snapshot of the property i am trying to control.
I used the following code but it still is not working fine.
sub EnableTitle
Dim objSource Dim p Dim title set objSource=ActiveDocument.GetSheetObject("CH102") set p=objSource.GetProperties p.Title = false objSource.SetProperties p