Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default updating pivot table data via external xls file which is replaced

hi,

the problem with my code for updating the table is that it works on my
computer but if i try it on another one the pivot table itself isn't updated
but a new worksheet created with an empty pivot in it

ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"U:\xyz\xyz_Shared\test\TestLines.xls!R4C1:R50000C 38"

The file from which the table should get it's data is called TestLines.xls
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default updating pivot table data via external xls file which is replaced

If you look at your code u will see a U: at the front of your path. This is
to a mapped drive. In order for it to work, u need to put the full path in
--in place of u: you need to put the actual server name instead

\\server\directory\filename

HTH

Devin

"Kathl" wrote:

hi,

the problem with my code for updating the table is that it works on my
computer but if i try it on another one the pivot table itself isn't updated
but a new worksheet created with an empty pivot in it

ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"U:\xyz\xyz_Shared\test\TestLines.xls!R4C1:R50000C 38"

The file from which the table should get it's data is called TestLines.xls

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default updating pivot table data via external xls file which is repla

thx; now it seems to be trying to access the file but it tells me that it
cannot open it. any further suggestions?

"dmoney" wrote:

If you look at your code u will see a U: at the front of your path. This is
to a mapped drive. In order for it to work, u need to put the full path in
--in place of u: you need to put the actual server name instead

\\server\directory\filename

HTH

Devin

"Kathl" wrote:

hi,

the problem with my code for updating the table is that it works on my
computer but if i try it on another one the pivot table itself isn't updated
but a new worksheet created with an empty pivot in it

ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"U:\xyz\xyz_Shared\test\TestLines.xls!R4C1:R50000C 38"

The file from which the table should get it's data is called TestLines.xls

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default updating pivot table data via external xls file which is replaced

no sure i understand the problem but you will need to open the file to update
it

Workbooks.Open _
Filename:="C:\tst.xls"

"Kathl" wrote:

hi,

the problem with my code for updating the table is that it works on my
computer but if i try it on another one the pivot table itself isn't updated
but a new worksheet created with an empty pivot in it

ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"U:\xyz\xyz_Shared\test\TestLines.xls!R4C1:R50000C 38"

The file from which the table should get it's data is called TestLines.xls

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default updating pivot table data via external xls file which is repla

isn't it somehow possible to query the file without opening it?

"dmoney" wrote:

no sure i understand the problem but you will need to open the file to update
it

Workbooks.Open _
Filename:="C:\tst.xls"

"Kathl" wrote:

hi,

the problem with my code for updating the table is that it works on my
computer but if i try it on another one the pivot table itself isn't updated
but a new worksheet created with an empty pivot in it

ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"U:\xyz\xyz_Shared\test\TestLines.xls!R4C1:R50000C 38"

The file from which the table should get it's data is called TestLines.xls

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 auto Updating Pivot Table linked to external data. mike Excel Discussion (Misc queries) 1 February 26th 08 05:28 PM
Updating Pivot Table Data automatically from external workbooks [email protected] Excel Discussion (Misc queries) 0 April 4th 07 05:08 PM
Pivot Table Data Source external excel file IH Excel Discussion (Misc queries) 4 November 4th 06 02:42 AM
Auto updating pivot tables using external XML data serdar New Users to Excel 0 March 12th 06 06:29 AM
Updating from external file & keeping previous data static Mildred Excel Programming 2 April 12th 04 10:28 AM


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