Results 1 to 3 of 3

Export hyperlinked rar to specific folder

Threaded View

  1. #1
    Registered User
    Join Date
    02-10-2017
    Location
    Warszaw
    MS-Off Ver
    2007
    Posts
    2

    Export hyperlinked rar to specific folder

    Hello guys,

    Im looking for help with VBA. Im working on excel table showing our parts with hyperlink to its path, that I managed do figure out with some simple commands, but now comes the issue. I can get list of parts with hyperlinks to its .RAR files, I need some walkaround so I can drag and drop those fields with hyperlinks and make a copy of them in specific folder or to attach it to outlook message. If not drag and drop, then somehow mark some of them and then run a command that make a copy of rar files in hyperlink and rar to specific folder or again outlook message.

    Please can you help me?


    Sub Example1()
        Dim xFSO As Object
        Dim xFolder As Object
        Dim xFile As Object
        Dim xFiDialog As FileDialog
        Dim xPath As String
        Dim I As Integer
        Set xFiDialog = Application.FileDialog(msoFileDialogFolderPicker)
        If xFiDialog.Show = -1 Then
            xPath = xFiDialog.SelectedItems(1)
        End If
        Set xFiDialog = Nothing
        If xPath = "" Then Exit Sub
        Set xFSO = CreateObject("Scripting.FileSystemObject")
        Set xFolder = xFSO.GetFolder(xPath)
        For Each xFile In xFolder.Files
            I = I + 1
            ActiveSheet.Hyperlinks.Add Cells(I, 1), xFile.Path, , , xFile.Name
        Next
    End Sub


    this will enlist Name of those parts with hyperlink to .rar file that contains pdf and step file.
    Last edited by Rud4s; 11-06-2017 at 02:26 PM. Reason: bad title

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Helping
    By Mimili in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2016, 10:31 AM
  2. New in the Forum- You guys are helping me a lot!
    By nejjoan14 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-28-2013, 01:54 AM
  3. Need helping adding Rows
    By rbpd5015 in forum Excel General
    Replies: 0
    Last Post: 04-06-2010, 02:00 PM
  4. helping
    By kevin_xsw in forum Excel General
    Replies: 1
    Last Post: 07-14-2008, 10:21 PM
  5. Thank you everyone for always helping me
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2007, 01:26 AM
  6. [SOLVED] Getting rid of helping columns
    By paulgallanter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2006, 12:15 AM
  7. [SOLVED] Need helping with my formula please...
    By Altstatten in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2006, 04:50 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