+ Reply to Thread
Results 1 to 4 of 4

Reference a file on Desktop

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Greenville, NC
    MS-Off Ver
    Excel 2010
    Posts
    10

    Reference a file on Desktop

    I know in VBA I can use the ENVIRON argument to reference a users desktop to grab data from a file. Is there a way I can do this in a function? The file with the formula is housed in the same folder on the desktop as the source material. I overwrite this file every time I wish to run a new look at the data and then refresh the fields. The problem is every time I edit the form I have to go to each user and change the formula to point to the data file on their computer. Thanks in advance for any help.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Reference a file on Desktop

    Do you mean like this?

    Please Login or Register  to view this content.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Greenville, NC
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Reference a file on Desktop

    Yes, but I want to be able to include the same structure into an excel function. So if I am stating that if a cell from doc.xls is not "", give me that cell else ""... How do I refer to that in the excel function...

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Reference a file on Desktop

    Maybe something like this?
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA for Opening file from desktop
    By amitmodi_mrt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2016, 03:43 AM
  2. VBA to Open a File on ANY Desktop
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2009, 10:25 AM
  3. Reference Desktop Files
    By melegaunt in forum Excel General
    Replies: 2
    Last Post: 03-24-2009, 05:06 PM
  4. XL File on DeskTop cannot be openned
    By helmekki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2005, 02:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1