+ Reply to Thread
Results 1 to 5 of 5

User input to select file and save copy in hidden folder

  1. #1
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    User input to select file and save copy in hidden folder

    Good Morning Guys.

    Before posing my question properly I'd just like to say thanks to everyone on here who's helped me. I've been part of this forum around a year now and had help from here countless times, I've learnt a lot from you guys and I really appreciate it.

    I've set up an excel workbook to help me with document control. One of this things I'd like to add to this workbook is a way to select a file and have it save that file under a specific name in a hidden folder. Each document that is created has a worksheet where I keep the details - See attached picture. Step by step this is what I'd like to be able to do.
    1. Click a button (to be added to the template)
    2. prompt the user to select the document - file
    3. prompt the user to select final or native
    3. save that file to a hidden folder(final or native) in a set location naming the file using the 'Document Number'_'Current Revision'
    4. create a hyperlink to that file in either the document revisions (final) section or the Native Files section

    It's really the user input that I'd struggle with, and is it possible to save a file to a hidden folder this way? the files types would be pdf and doc files.

    Any help would be fantastic, rep for help as always.

    Thanks,

    R
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: User input to select file and save copy in hidden folder

    Sub getFile()
    Application.Dialogs(xlDialogOpen).Show
    End Sub

    Found this code, which brings up the file browser that I'd like. But this opens the file you select. I'd like it save a copy of the selected file in pre-defined location(hidden folder) and save it with a predetermined name

    Any ideas guys?

  3. #3
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: User input to select file and save copy in hidden folder

    maybe I could do this another way? Have the person select the file, save the file extension in a certain cell then use that somehow to make a copy of the file and save it using the 'Document Number'_'Current Revision' in the hidden folder?

    Anyone have any suggestions at all? I'll accept bad ones too so long as it gets the brain juices flowing!

  4. #4
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: User input to select file and save copy in hidden folder

    Okay.

    Can I use this code
    Please Login or Register  to view this content.
    to get the person to open the wordfile then use this in the same macro
    Please Login or Register  to view this content.
    Where File Path is a predetermined folder pather, DocNo is taken from 'B7' and RevNo is taken from 'M4'

    Would that work? because all the code would be in excel but I would have just activated a word document?

  5. #5
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: User input to select file and save copy in hidden folder

    Never mind guys,

    I managed to get something working.

+ 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. Need Save As script where user gets Drive/Folder choice but data establishes file name>
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2013, 04:40 PM
  2. [SOLVED] userform to gather input file and output folder, process reports and save
    By rufuswilson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2012, 09:26 AM
  3. [SOLVED] creating a folder with an user input filepath and user input folder name
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2012, 10:04 AM
  4. Save generated xml file to a web folder with user name and password
    By skumaar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2010, 12:02 PM
  5. let user select input file, modify, save
    By alanders in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2010, 06:37 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