Solved

Macro stopping on different drive

Posted on 2013-11-08
3
177 Views
Last Modified: 2013-11-08
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
0
Comment
Question by:Justincut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39633446
Hi,

Yhave to give the UNC File Path which is the same for both of you

Open Windows Explorer / Computer on the side of the Drive letter is the UNC address which is like
\\something.in.the.address\

and use it to replace the drive letter

Regards
0
 

Author Comment

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

so how do I adapt the code?
0
 
LVL 52

Expert Comment

by:Rgonzo1971
ID: 39633533
Hi,
In Windows 7 you can select 'network location' if you right click the columns in explorer

to have the network location

Regards
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question