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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,213,524
Messages
6,114,117
Members
448,549
Latest member
brianhfield

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