Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How to open .xlt containing PivotTable?

Hi,
I've an Excel template MySheet.xlt containing a pivot table based on a query
exported from Access. In VBA I open the template:

Set appExcel = CreateObject("Excel.Application")
Set wbk = appExcel.Workbooks.Open(MySheet.xlt)

And I get MySheet1.xls. So far OK. But the pivot table is not updated and
trying to update it manually, gives an error: Invalid Pivot Table.
However, when I open the sheet by double clicking the xlt the pivot table is
updated, and all is OK.

How can I realize that in VBA?
Application.FollowHyperlink MySheet.xlt
opens the xlt directly

Thanks for help
Henk


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a PivotTable w/o selecting data in an existing PivotTable Damian Excel Discussion (Misc queries) 6 November 2nd 07 04:44 PM
How to open/consolidate details for multiple rows in a PivotTable Jamie W[_2_] Excel Discussion (Misc queries) 0 July 31st 07 05:48 PM
COUNTIF multiple conditions... open to suggestions (or PivotTable Jamie W[_2_] Excel Discussion (Misc queries) 4 July 28th 07 01:35 AM
PivotTable - PivotTable Field name is not valid - error! miker1999[_17_] Excel Programming 1 June 10th 04 10:30 AM
pivot table error:Cannot open PivotTable Source file!!!!!!!! No Name Excel Programming 1 May 4th 04 08:33 AM


All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"