+ Reply to Thread
Results 1 to 4 of 4

Exporting a selection to a text file using a filename specified in a cell?

  1. #1
    Registered User
    Join Date
    01-04-2004
    Location
    Netherlands
    Posts
    54

    Exporting a selection to a text file using a filename specified in a cell?

    Hi Experts,

    I'm not the biggest forum search expert so I might've missed it if it was asked before. Here's the deal; I need to export some parts of the excel sheets to a text file, which is easy enough, something like:

    Please Login or Register  to view this content.
    Notice how I save it as 'car_1.hdv' and 'car_2.hdv', also in a subdirectory of the same name. now I don't really want it to be named like that. Instead, I'd like to type in a cell, say A1: ''BMW'' and in A2 ''porsche''.

    Now I want the files to be saved as
    \physics\bmw\bmw.hdv
    \physics\porsche\porsche.hdv

    instead of
    \physics\car_1\car_1.hdv
    \physics\car_2\car_2.hdv

    I can't figure out how to do this though! Any ideas?

    Thanks!
    /Niels

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Well, you just include the cell in your path statement, something like the following may work:


    Please Login or Register  to view this content.

    Does that help

    Regards

    Dav
    Last edited by Dav; 02-27-2008 at 09:38 AM.

  3. #3
    Registered User
    Join Date
    01-04-2004
    Location
    Netherlands
    Posts
    54
    Hi Dav,

    I'll try that out this weekend and will reply my luck. Thanks!
    Niels

  4. #4
    Registered User
    Join Date
    01-04-2004
    Location
    Netherlands
    Posts
    54
    That does the job

    Thanks,
    Niels

+ 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