+ Reply to Thread
Results 1 to 2 of 2

Detect new drive if main folder is moved

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Cool Detect new drive if main folder is moved

    Good Morning Folk

    I am trying to use a macro to link a file to a button on a workbook page, It will, sometimes need to be moved to a new drive

    I recorded a macro to open the workbook within a folder and as you can see it puts in the drive path, in this case 'C'. I need it to automatically work on any drive not just C, The folder, workbook and filename, structures will not change, just the drive

    Many thanks for your help

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Detect new drive if main folder is moved

    Have a look at the GetOpenFilename method.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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