+ Reply to Thread
Results 1 to 5 of 5

Naming exported file

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    Slovakia
    MS-Off Ver
    2007, 2010, 2013
    Posts
    76

    Naming exported file

    Hello, i´ve got this code to save worksheet2 as new excel file. Is it possible to automatically name that exported file from value in choosen cell?

    For example if A1="Henry´s list" then file name will be named "Henry´s list". Thanks for answer.




    Please Login or Register  to view this content.
    Last edited by jj4jj; 07-15-2015 at 01:31 PM.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Naming exported file

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button). The result will appear like this in the post window:

    Please Login or Register  to view this content.
    ... and appear like this when posted:



    copy to clipboard
    your code here ...
    and here ...
    and here
    You can also type the code tags in manually if you prefer. For more information about these and other tags, click here.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    Slovakia
    MS-Off Ver
    2007, 2010, 2013
    Posts
    76

    Re: Naming exported file

    is it more readable now?

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Naming exported file

    Yes, thank you.
    Please Login or Register  to view this content.
    Just pass the cell value into the 'GetSaveAsFilename' call.

  5. #5
    Registered User
    Join Date
    07-13-2015
    Location
    Slovakia
    MS-Off Ver
    2007, 2010, 2013
    Posts
    76

    Re: Naming exported file

    Many thanks

+ 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 help with automatic filtration on exported file
    By akandl in forum Excel General
    Replies: 0
    Last Post: 07-31-2014, 03:50 PM
  2. Folder naming + File naming
    By Frozt15 in forum Excel General
    Replies: 2
    Last Post: 07-23-2012, 04:52 AM
  3. Counting errors from an exported file
    By Nalleman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2011, 09:02 AM
  4. Data Exported From One Excel File To Another
    By willh3 in forum Excel General
    Replies: 5
    Last Post: 02-25-2007, 05:10 PM
  5. [SOLVED] How do you delete an exported file from a directory
    By Brett Smith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2006, 11:50 AM
  6. [SOLVED] VBE References Missing from Exported File
    By Stratuser in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2005, 12:06 PM
  7. [SOLVED] why are there quotes in my exported text file?
    By AlexK in forum Excel General
    Replies: 2
    Last Post: 02-16-2005, 03:04 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