Changing Directory

lynxbci

Board Regular
Joined
Sep 22, 2004
Messages
201
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I am using a simple sub to change the default directory,
Code:
ChDrive "c:\ks projects"
ChDir "c:\ks projects"
This effects the file open perfectly.
However when using Insert Hyperlink, and it shows the current directory not the new default one.
Is there a way in VBA (excel 2010) to change the default/current directory that is displayed when i insert hyperlinks?

Thanks in advance
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
yes manually clicking, but user has to insert several, and it just defaults tot he current directory every time. It's a nice to have rathe than an essential

thank
 
Upvote 0
I don't know of a way to change the default directory I'm afraid - even if using the hyperlinks dialog (from VBA) I can't see a way of passing in arguments...
 
Upvote 0
Well if the MVP's can't find a way then that's good enough reason for me to give up.

thanks for checking
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,920
Latest member
jaspers

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