Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MDW
 
Posts: n/a
Default Pivot Table not valid error message when formatting data 'button'.

Created Pivot table/chart, password-protected and put onto website (ie NOt
saved file as Web Page). Click on link, get warning message concerning macros
and prompted for password. If attempt to change data button by rightclicking
on it and selecting format - get error message 'Pivot Table not valid'. Note,
accessing the file directly (ie not via the web) works perfectly Ok.

PS Also get visual basic error message ' Run time error 1004 :Unable to set
the default property of the Pivotitem class'

VB code

Sub All_Years()
CP = "(All)"
pf = "Year First Seen"
Call DeleteOldItemsWB 'this runs OK'
Call Hosp(CP, pf) 'this stops at line 3'
Call Tumour(CP, pf)
End Sub

Public Sub Hosp(X, Y)
Sheets("Hospital Chart").Select
ActiveChart.PivotLayout.PivotFields(Y).CurrentPage = X ' line 3'
Sheets("Home").Select
End Sub

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
How to get pivot table data columns instead of rows Jessica Excel Discussion (Misc queries) 0 January 19th 05 04:29 PM
Pivot Table Drill Down Number Formatting Gregg Riemer Excel Discussion (Misc queries) 1 January 4th 05 10:53 PM
pivot table in data source order Murray Excel Discussion (Misc queries) 1 December 24th 04 09:01 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - does it work with DDE links and Stock Tickers? Post Tenebras Lux Excel Worksheet Functions 0 December 1st 04 05:17 PM


All times are GMT +1. The time now is 09:42 AM.

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

About Us

"It's about Microsoft Excel"