Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8833545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:48:18+00:00 2026-06-14T08:48:18+00:00

I am writing a macro, workbook MACRO , that has to open another workbook,

  • 0

I am writing a macro, workbook MACRO, that has to open another workbook, lets call it OPEN.

The problem is the workbooks OPEN and MACRO are on the net and the OPEN‘s address is up to the person who runs the macro.

I mean, if I run the macro the address is:

X:\Destkop\OPEN.xlsm

but, for example, if the macro is run by another person, the address could change:

Y:\Destkop\OPEn.xlsm

so for the macro it is imposible to open the workbook OPEN and it doesn’t run the code.

To get the address I use the following code:

activeworkbook.fullname 

but the problem is that code will return the address of the OPEN in my computer not on the “net”.

Is there anyway to know/get the address of any workbook placed on the net???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:48:20+00:00Added an answer on June 14, 2026 at 8:48 am

    Instead of using the mapped drive letter, use the UNC address. X:\ and Y:\ are most likely different aliases (for want of a better term) to the same place which can also be expressed in UNC form as

    \\ServerName\SharedFolder\
    

    So the full path would be \\ServerName\SharedFolder\Desktop\Open.xlsm

    You should be able to use that in the command to open the workbook and it will no longer matter which drive letter they have the share mapped to or indeed whether they have it mapped at all, as long as they have access to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a macro that will copy and paste information form one workbook
I'm writing a macro that creates tickets on a database based on alerts received
I'm writing a macro that will click certain spots on the screen when I
I am writing a macro that converts a list of names that are in
I'm writing a microsoft word macro and having difficulty with vb.net. Please help.
I'm for a solution to part of a macro I'm writing that will hide
I am writing a function to insert register N. The problem is that when
I am writing a Clojure macro that accepts a description of a panel using
I am writing a VBA macro which is to be used by others who
I'm writing an ipython macro that processes the output of a program. The thing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.