+ Reply to Thread
Results 1 to 2 of 2

Changing the file type of exported document

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

    Changing the file type of exported document

    Hello, so i´ve got this code:

    stFileLocation = Application.GetSaveAsFilename("Default name of the file")
    ActiveWorkbook.SaveAs Filename:=stFileLocation & "xlsx"

    Iwould like to export the file as .txt

    Is it even possible?

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,862

    Re: Changing the file type of exported document

    Look into: https://msdn.microsoft.com/en-us/lib.../ff841185.aspx

    probably:
    Please Login or Register  to view this content.
    PS. note how code tags (required by our http://www.excelforum.com/forum-rule...rum-rules.html ) improved readability - and edit your post using the tags.
    Best Regards,

    Kaper

+ 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. [SOLVED] Naming exported file
    By jj4jj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2015, 04:42 PM
  2. #Value! When changing file type from XLSX to XLS
    By Khaldon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-13-2013, 07:55 PM
  3. Excel 2007 : Formatting an exported Excel document
    By hermanpeckel in forum Excel General
    Replies: 1
    Last Post: 06-15-2012, 07:12 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] Changing a Word Document to a CSV Formated Document
    By Team1 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-06-2006, 07:29 PM
  6. [SOLVED] Changing File Location For Excel Document
    By Greg Matthews in forum Excel General
    Replies: 3
    Last Post: 08-06-2005, 12:05 PM
  7. Export an excel file as text without change of document type
    By Michael in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2005, 11:06 AM

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