ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Reling Pivot sourcedata to network drive (https://www.excelbanter.com/excel-programming/297233-reling-pivot-sourcedata-network-drive.html)

MattShoreson[_13_]

Reling Pivot sourcedata to network drive
 
Hi,

I want to update the sourcedata prop to point to a network path an
file.

for example:
Taking variable VarMonth and using as follows

ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:
"'[" & VarMonth & ".xls]Data'!$A:$Z"

This works fine if I am using a file in the same directory. However i
you have a file on your desktop. The relink doesn't work.

Any ideas/solutions/workarounds gratefully received.
cheers,
Matt

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 06:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com