I have a prolblem with this code .
i am trying to enter a date and time after the pivot is updated
MyFile = "F:\Finance\Monthly Analysis\Technology Expense Review Group\Pivot Tables for month end Accounts by Descripion.xls"
Set wbXL = AppXL.Workbooks.Open(MyFile)
Set wbXL = AppXL.ActiveWorkbook
Set ShtXL = AppXL.Sheets("DP External"
ShtXL.Activate
AppXL.ActiveSheet.PivotTabl("PivotTable_DPExternal"
.RefreshTable
AppXL.Sheets("DP External"
.Cells(2, k).Value = Now()
i am geting an error . aplication defiend error ??
and how can i put this line
AppXL.Sheets("DP External"
.Cells(2, k).Value = Now()
in a sub procedure and just call it .
thanks
i am trying to enter a date and time after the pivot is updated
MyFile = "F:\Finance\Monthly Analysis\Technology Expense Review Group\Pivot Tables for month end Accounts by Descripion.xls"
Set wbXL = AppXL.Workbooks.Open(MyFile)
Set wbXL = AppXL.ActiveWorkbook
Set ShtXL = AppXL.Sheets("DP External"
ShtXL.Activate
AppXL.ActiveSheet.PivotTabl("PivotTable_DPExternal"
AppXL.Sheets("DP External"
i am geting an error . aplication defiend error ??
and how can i put this line
AppXL.Sheets("DP External"
in a sub procedure and just call it .
thanks