Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Updating PivotTable SourceDate using VBA

The following code runs with no error whatsoever. However, the new datarange
in the €˜BT Inv worksheet does not get applied to the pivot table. If I put
a code break at the line following the source data update, and then back the
code up to the update to step it through manually, the source data update is
applied. It appears that only a manual update or code stepping are able to
applie the source data update to the pivot table.
€’ Is there an error with this code preventing the application of the new
datasource?
€’ Is there another way to update the data source that circumvents the
PivotTableWizard?

Sub IXCMixRefresh(byval LRow as Integer)

Sheets("Interconnect Mix").Activate
NexusUnprotect €˜ Unprotects worksheet containing the pivot table
Sheets("Interconnect Mix").PivotTableWizard SourceType:=xlDatabase,
SourceData:="'BT Inv'!R1C1:R" & LRow & "C15"
ActiveWorkbook.ShowPivotTableFieldList = False
Range("A1").Select
NexusProtect

End Sub

--
M Carman
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
Addin for updating database by ammending pivottable nc Excel Discussion (Misc queries) 0 November 6th 06 08:51 AM
how can i getting chart's sourcedate range classpeople Charts and Charting in Excel 1 June 16th 05 02:47 AM
When updating a worksheet, how do I create a link updating the sa. Phlashh Excel Worksheet Functions 9 January 27th 05 06:05 PM
PivotTable - PivotTable Field name is not valid - error! miker1999[_17_] Excel Programming 1 June 10th 04 10:30 AM


All times are GMT +1. The time now is 01:08 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"