+ Reply to Thread
Results 1 to 2 of 2

Export a Named range to Tab seperated text file

  1. #1
    Peter Kamau
    Guest

    Export a Named range to Tab seperated text file

    I would like to create a macro to export a named range in Excel to a tab
    seperated text file, can anyone assist please ?



  2. #2
    Tom Ogilvy
    Guest

    Re: Export a Named range to Tab seperated text file

    Sub ABC()
    Dim bk as Workbook, bk1 as Workbook
    Set bk = ActiveWorkbook
    Set bk1 = Workbooks.Add(xlWBATWorksheet)
    bk.Names("MyRange").Copy bk1.Worksheets(1).Range("A1")
    bk1.SaveAs Filename:="C:\Data\MyFile.txt", _
    FileFormat:=xlText, CreateBackup:=False
    bk1.close SaveChanges:=False
    End Sub

    --
    Regards,
    Tom Ogilvy

    "Peter Kamau" <[email protected]> wrote in message
    news:[email protected]...
    > I would like to create a macro to export a named range in Excel to a tab
    > seperated text file, can anyone assist please ?
    >
    >




+ 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