Link to home
Start Free TrialLog in
Avatar of Justincut
Justincut

asked on

Macro stopping on different drive

Hi Guys, I have a Macro, which is on the w drive, but if my colleague wants to run it on the v drive, it will stop. How do you find out the exact server name so everyone can use the same program? Here's my code:

  Workbooks.Open Filename:= _
        "w:\Treasury Finance Controls\Ledger v SS Recs\Recs - Murex_GBO\2013 Recs\11_2013 Recs\OBS\Full Ledger\" & PrevDay & "\ALM OBS " & PrevDay & "*.xlsx" _
        , Origin:=xlWindows
    Rows("3:3").Select
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Justincut
Justincut

ASKER

it says "finance on 'Cluster Node 2 (sgbmmg001) DFS,Bltechley (mercury)' (v:)"

so how do I adapt the code?
Hi,
In Windows 7 you can select 'network location' if you right click the columns in explorer

to have the network location

Regards