+ Reply to Thread
Results 1 to 4 of 4

vba to open and save file on desktop

  1. #1
    Registered User
    Join Date
    11-27-2008
    Location
    Noida
    Posts
    51

    vba to open and save file on desktop

    Hi

    I need some help on the attach macro which get the file name on the directory mentioned wat i want is tht after getting the file name is that possible that the user have a option to open & save ( on any path) the file just by clicking on the file name

    thnk
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: vba to open and save file on desktop

    You could use a Workbook_SheetBeforeDoubleClick macro

    Any macro would need a method of being able to identify the path the file list was generated from.

    At present you can run your file list macro multiple times & save the report to different sheets but you do not save the path so any macro to open a file will not know wehere to look for that file
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    11-27-2008
    Location
    Noida
    Posts
    51

    Re: vba to open and save file on desktop

    Quote Originally Posted by mudraker View Post
    You could use a Workbook_SheetBeforeDoubleClick macro

    Any macro would need a method of being able to identify the path the file list was generated from.

    At present you can run your file list macro multiple times & save the report to different sheets but you do not save the path so any macro to open a file will not know wehere to look for that file
    Hi

    Thank for reply but i am not so good in VBA can u please help me how i code my macro so that it can save the path and then give the option to user for save the file which user click

  4. #4
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: vba to open and save file on desktop

    Hi
    Save the attached file in the folder where you wish to list from. run the macro. it will ask for extention. (Say .xls) the output will be a list of files in col A with hyperlink so that when you click on them it opens the file.
    Ravi
    Attached Files Attached Files

+ 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