Question on query source and set up of workbook

ardykav

Board Regular
Joined
Oct 18, 2015
Messages
172
Office Version
  1. 365
Platform
  1. Windows
I have a workbook with several tabs.

One tab is called master.

I then have another tab called summary sheet.

On the summary sheet i have several tables which are all queries looking into the master tab.

This is all on one computer and works fine. however if i want to put it on a usb the queries dont work due to the directories not being the same. My question is what is the best way going about changing the directory so it all works without any problems? Any alternate suggestions on set up also welcome,

All help greatly appreciated,

thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I have a workbook with several tabs.

One tab is called master.

I then have another tab called summary sheet.

On the summary sheet i have several tables which are all queries looking into the master tab.

This is all on one computer and works fine. however if i want to put it on a usb the queries dont work due to the directories not being the same. My question is what is the best way going about changing the directory so it all works without any problems? Any alternate suggestions on set up also welcome,

All help greatly appreciated,

thanks

The short answer is that you would either use a shared workbook loaded into a directory on a server, or write the code so that individual users could use their default directory to store the file and use a variable to assign that directory at the beginning of the code with ThisWorkbook.Path. How to go about it would take too much space on this media. You can probably search around on the web and find some articles on setting up files on LAN that will give you an idea.
 
Upvote 0
Thank you very much that is of great assistance.

I will go with the shared workbook option,

thanks again
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top