LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default programmatically edit workbook internal data conn. file location

I have a SharePoint site that gets deployed mainly through feature receivers.
Part of the deployment, is to create ODCs in a data connection library and
publish preexisting excel workbooks to a report library. The workbooks have a
data connection using the odcs. This all works very well, except at present I
still have a manual step of opening the workbook(s) from the report library,
and editing the connection so that the definition has the appropriate url for
the connection file (to the appropriate data connection library). I would
like to be able to do this last step as part of the deployment feature,
however I can't find an programmatic way to do this.

When you open a workbook, edit the data connection properties and go to the
definition tab - in what class would I find the settings on that page in
order to do this programmatically?

Even if I could set up the workbook to use an environment variable, and I
could create the envrionment variable before deploying would be good enough
if that makes it any easier. When I change it manually I can use an
environment variable like %PROGRAMFILES%, but it expands it and stores the
value in the workbook instead of the variable itself.
 
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
Changing AutoSave location programmatically Marcotte A Excel Programming 2 November 16th 07 10:38 PM
programmatically save new workbook with custom name & location Carlee Excel Programming 4 March 30th 07 05:50 PM
macro help for changing data (cell location) in edit find box Jim Excel Discussion (Misc queries) 1 November 10th 06 10:57 PM
Programmatically Set the Workgroup Templates location joe215 Excel Programming 2 November 10th 05 07:10 PM
Programmatically saving a workbook to a ftp location fails Lloyd Excel Programming 0 December 20th 04 09:17 PM


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