PC Review


Reply
Thread Tools Rate Thread

Can you change linked Excel file to Access path with Excel VBA

 
 
raymond.allan@blueyonder.co.uk
Guest
Posts: n/a
 
      23rd Jun 2007
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 With Quote
 
 
 
 
=?Utf-8?B?SkxhdGhhbQ==?=
Guest
Posts: n/a
 
      23rd Jun 2007
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.


"(E-Mail Removed)" 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 & xml-file: change referring path of input file? Jannick Asmus Microsoft Excel Discussion 0 20th Jan 2008 11:29 PM
How can I get Excel to automatically change file path links? =?Utf-8?B?aXVwc2s=?= Microsoft Excel Misc 1 1st Aug 2006 07:46 PM
Change path of Excel link in Access SSweez@gmail.com Microsoft Access External Data 3 13th May 2006 02:28 PM
Setting a relative path for a linked Excel File adrian Microsoft Access External Data 1 5th Sep 2005 07:16 PM
path error to linked excel file from access db =?Utf-8?B?Sm9obiBHdXNzbWFu?= Microsoft Access External Data 2 15th Feb 2004 01:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:20 AM.