Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Can you change linked Excel file to Access path with Excel VBA

Hi,

Using Excel 2000 and Access 2000

I have a few large Excel files linked to Access and use Excel to query
the required data

My program is now going global within the company I work with and it
is not guaranteeed that all users will have the same path names

I wrote an add-in that has full control where the files are saved and
the .mdb will always be in the same location along with my program and
other relevant files required.

Example, at work I have a network folder J:\Item Branch Metric, if I
work from home I manually use the Linked Table Manager in Access to
change this to C:\Item Branch Metric

Can VBA be used to do the above change ?

TIA for any help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default Can you change linked Excel file to Access path with Excel VBA

Yes, VBA can do that in both sides of the issue: within Excel and within
Access.

But for your global use, I'd suggest using a URL type path rather than a
path with a mapped drive. Use the path as displayed when you browse for the
file using My Network Places instead of the one shown when you browse for it
using My Computer. This also has the advantage of allowing the 'real world'
users to use the program without even having to have the share with the
database on it mapped to any drive at all.


" wrote:

Hi,

Using Excel 2000 and Access 2000

I have a few large Excel files linked to Access and use Excel to query
the required data

My program is now going global within the company I work with and it
is not guaranteeed that all users will have the same path names

I wrote an add-in that has full control where the files are saved and
the .mdb will always be in the same location along with my program and
other relevant files required.

Example, at work I have a network folder J:\Item Branch Metric, if I
work from home I manually use the Linked Table Manager in Access to
change this to C:\Item Branch Metric

Can VBA be used to do the above change ?

TIA for any help


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
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
How can I get Excel to automatically change file path links? iupsk Excel Discussion (Misc queries) 1 August 1st 06 07:46 PM
Excel File Linked in Access nukeawhale Excel Discussion (Misc queries) 1 January 21st 06 02:41 AM
How to change the Excel Title Bar to show the full file path na... lmilkey8855 Excel Discussion (Misc queries) 2 January 6th 05 03:08 PM
Using OWC10 to access an Excel file with linked SQL Server Charles Dame Excel Programming 3 December 4th 03 05:17 AM


All times are GMT +1. The time now is 08:57 PM.

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"