+ Reply to Thread
Results 1 to 2 of 2

Create Shortcuts to Files using VBA in Excel

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    Create Shortcuts to Files using VBA in Excel

    Hello, I am trying to cut down on emailing large file attachments to other people by creating shortcuts to source documents and attaching the shortcuts instead.

    Not everyone in our department is IT literate so I want to make an Excel workbook, where someone can browse for a file, select it and then it automatically creates a shortcut in a specified folder. And then they can attach the shortcut to new emails.

    I have the following code so far to select the file and store it as fLdr variable.

    Sub X_Drive()
    Dim fLdr As String, Fil As String, FPath As String
    Dim PathIs As String
    With Application.FileDialog(msoFileDialogFilePicker)
    .Show
    fLdr = .SelectedItems(1)
    End With
    End Sub
    Does anyone know some VBA code which creates a shortcut to a specific folder (say on "\\ServerPath\Shortcut icons") from the Selected Item?

    Thanks,
    Tom

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Create Shortcuts to Files using VBA in Excel

    See for example this page.
    Remember what the dormouse said
    Feed your head

+ 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